diff --git a/src/lints/function_missing.ron b/src/lints/function_missing.ron index 03d44bb1..51d2ce79 100644 --- a/src/lints/function_missing.ron +++ b/src/lints/function_missing.ron @@ -47,8 +47,6 @@ SemverQuery( error_message: "A publicly-visible function cannot be imported by its prior path. A `pub use` may have been removed, or the function itself may have been renamed or removed entirely.", per_result_error_template: Some("function {{join \"::\" path}}, previously in file {{span_filename}}:{{span_begin_line}}"), witness: ( - hint_template: -r#"use {{join "::" path}}; -{{name}}(...);"#, + hint_template: r#"{{join "::" path}}(...);"#, ), ) diff --git a/test_outputs/witnesses/function_missing.output.ron b/test_outputs/witnesses/function_missing.output.ron index 75b1ea38..2e270190 100644 --- a/test_outputs/witnesses/function_missing.output.ron +++ b/test_outputs/witnesses/function_missing.output.ron @@ -3,45 +3,45 @@ ( filename: "src/lib.rs", begin_line: 4, - hint: "use feature_flags_validation::foo_becomes_gated;\nfoo_becomes_gated(...);", + hint: "feature_flags_validation::foo_becomes_gated(...);", ), ( filename: "src/lib.rs", begin_line: 5, - hint: "use feature_flags_validation::bar_becomes_gated;\nbar_becomes_gated(...);", + hint: "feature_flags_validation::bar_becomes_gated(...);", ), ], "./test_crates/features_simple/": [ ( filename: "src/lib.rs", begin_line: 2, - hint: "use features_simple::feature_dependent_function;\nfeature_dependent_function(...);", + hint: "features_simple::feature_dependent_function(...);", ), ], "./test_crates/function_const_removed/": [ ( filename: "src/lib.rs", begin_line: 5, - hint: "use function_const_removed::fn_removed;\nfn_removed(...);", + hint: "function_const_removed::fn_removed(...);", ), ], "./test_crates/function_feature_changed/": [ ( filename: "src/lib.rs", begin_line: 2, - hint: "use function_feature_changed::moving_from_feature_A_to_feature_B;\nmoving_from_feature_A_to_feature_B(...);", + hint: "function_feature_changed::moving_from_feature_A_to_feature_B(...);", ), ], "./test_crates/function_missing/": [ ( filename: "src/lib.rs", begin_line: 1, - hint: "use function_missing::will_be_removed_fn;\nwill_be_removed_fn(...);", + hint: "function_missing::will_be_removed_fn(...);", ), ( filename: "src/lib.rs", begin_line: 4, - hint: "use function_missing::pub_use_removed_fn;\npub_use_removed_fn(...);", + hint: "function_missing::pub_use_removed_fn(...);", ), ], }