Skip to content

Commit 3d0b7fc

Browse files
senamakelmedullabot
andcommitted
fix(test): use fully qualified default call in test
The test `default_and_metadata_contracts_are_available` was calling `DetectToolsTool::default()` which could be ambiguous when multiple `Default` implementations exist. Changed to the fully qualified syntax `<DetectToolsTool as Default>::default()` to ensure the correct trait method is invoked. Auto-committed-on: dragonfly Co-authored-by: Medulla <medulla@tinyhumans.ai>
1 parent d8a6579 commit 3d0b7fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • crates/tinytools-std/src/detect_tools

‎crates/tinytools-std/src/detect_tools/test.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn name_and_permission() {
3030

3131
#[test]
3232
fn default_and_metadata_contracts_are_available() {
33-
let tool = DetectToolsTool::default();
33+
let tool = <DetectToolsTool as Default>::default();
3434
assert!(tool.description().contains("PATH"));
3535
assert_eq!(
3636
tool.parameters_schema()["properties"]["tools"]["type"],

0 commit comments

Comments
 (0)