@@ -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
@@ -1238,23 +1239,26 @@ impl FixArgs {
12381239 }
12391240
12401241 let file = file. ok_or_else ( || anyhow:: anyhow!( "could not find .rs file in rustc args" ) ) ?;
1241- // ALLOWED: For the internal mechanism of `cargo fix` only.
1242- // Shouldn't be set directly by anyone.
1243- #[ allow( clippy:: disallowed_methods) ]
1242+ #[ expect(
1243+ clippy:: disallowed_methods,
1244+ reason = "internal only, no reason for config support"
1245+ ) ]
12441246 let idioms = env:: var ( IDIOMS_ENV_INTERNAL ) . is_ok ( ) ;
12451247
1246- // ALLOWED: For the internal mechanism of `cargo fix` only.
1247- // Shouldn't be set directly by anyone.
1248- #[ allow( clippy:: disallowed_methods) ]
1248+ #[ expect(
1249+ clippy:: disallowed_methods,
1250+ reason = "internal only, no reason for config support"
1251+ ) ]
12491252 let prepare_for_edition = env:: var ( EDITION_ENV_INTERNAL ) . ok ( ) . map ( |v| {
12501253 let enabled_edition = enabled_edition. unwrap_or ( Edition :: Edition2015 ) ;
12511254 let mode = EditionFixMode :: from_str ( & v) ;
12521255 mode. next_edition ( enabled_edition)
12531256 } ) ;
12541257
1255- // ALLOWED: For the internal mechanism of `cargo fix` only.
1256- // Shouldn't be set directly by anyone.
1257- #[ allow( clippy:: disallowed_methods) ]
1258+ #[ expect(
1259+ clippy:: disallowed_methods,
1260+ reason = "internal only, no reason for config support"
1261+ ) ]
12581262 let sysroot = env:: var_os ( SYSROOT_INTERNAL ) . map ( PathBuf :: from) ;
12591263
12601264 Ok ( FixArgs {
0 commit comments