@@ -678,9 +678,10 @@ to prevent this issue from happening.
678678/// Returns `None` if `fix` is not being run (not in proxy mode). Returns
679679/// `Some(...)` if in `fix` proxy mode
680680pub fn fix_get_proxy_lock_addr ( ) -> Option < String > {
681- // ALLOWED: For the internal mechanism of `cargo fix` only.
682- // Shouldn't be set directly by anyone.
683- #[ allow( clippy:: disallowed_methods) ]
681+ #[ expect(
682+ clippy:: disallowed_methods,
683+ reason = "internal only, no reason for config support"
684+ ) ]
684685 env:: var ( FIX_ENV_INTERNAL ) . ok ( )
685686}
686687
@@ -1240,12 +1241,18 @@ impl FixArgs {
12401241 let file = file. ok_or_else ( || anyhow:: anyhow!( "could not find .rs file in rustc args" ) ) ?;
12411242 // ALLOWED: For the internal mechanism of `cargo fix` only.
12421243 // Shouldn't be set directly by anyone.
1243- #[ allow( clippy:: disallowed_methods) ]
1244+ #[ expect(
1245+ clippy:: disallowed_methods,
1246+ reason = "internal only, no reason for config support"
1247+ ) ]
12441248 let idioms = env:: var ( IDIOMS_ENV_INTERNAL ) . is_ok ( ) ;
12451249
12461250 // ALLOWED: For the internal mechanism of `cargo fix` only.
12471251 // Shouldn't be set directly by anyone.
1248- #[ allow( clippy:: disallowed_methods) ]
1252+ #[ expect(
1253+ clippy:: disallowed_methods,
1254+ reason = "internal only, no reason for config support"
1255+ ) ]
12491256 let prepare_for_edition = env:: var ( EDITION_ENV_INTERNAL ) . ok ( ) . map ( |v| {
12501257 let enabled_edition = enabled_edition. unwrap_or ( Edition :: Edition2015 ) ;
12511258 let mode = EditionFixMode :: from_str ( & v) ;
@@ -1254,7 +1261,10 @@ impl FixArgs {
12541261
12551262 // ALLOWED: For the internal mechanism of `cargo fix` only.
12561263 // Shouldn't be set directly by anyone.
1257- #[ allow( clippy:: disallowed_methods) ]
1264+ #[ expect(
1265+ clippy:: disallowed_methods,
1266+ reason = "internal only, no reason for config support"
1267+ ) ]
12581268 let sysroot = env:: var_os ( SYSROOT_INTERNAL ) . map ( PathBuf :: from) ;
12591269
12601270 Ok ( FixArgs {
0 commit comments