@@ -417,7 +417,7 @@ pub fn register_pre_expansion_lints(store: &mut rustc_lint::LintStore, sess: &Se
417
417
418
418
let msrv = conf. msrv . as_ref ( ) . and_then ( |s| {
419
419
parse_msrv ( s, None , None ) . or_else ( || {
420
- sess. err ( & format ! (
420
+ sess. err ( format ! (
421
421
"error reading Clippy's configuration file. `{s}` is not a valid Rust version"
422
422
) ) ;
423
423
None
@@ -433,7 +433,7 @@ fn read_msrv(conf: &Conf, sess: &Session) -> Option<RustcVersion> {
433
433
. and_then ( |v| parse_msrv ( & v, None , None ) ) ;
434
434
let clippy_msrv = conf. msrv . as_ref ( ) . and_then ( |s| {
435
435
parse_msrv ( s, None , None ) . or_else ( || {
436
- sess. err ( & format ! (
436
+ sess. err ( format ! (
437
437
"error reading Clippy's configuration file. `{s}` is not a valid Rust version"
438
438
) ) ;
439
439
None
@@ -444,7 +444,7 @@ fn read_msrv(conf: &Conf, sess: &Session) -> Option<RustcVersion> {
444
444
if let Some ( clippy_msrv) = clippy_msrv {
445
445
// if both files have an msrv, let's compare them and emit a warning if they differ
446
446
if clippy_msrv != cargo_msrv {
447
- sess. warn ( & format ! (
447
+ sess. warn ( format ! (
448
448
"the MSRV in `clippy.toml` and `Cargo.toml` differ; using `{clippy_msrv}` from `clippy.toml`"
449
449
) ) ;
450
450
}
@@ -473,7 +473,7 @@ pub fn read_conf(sess: &Session) -> Conf {
473
473
let TryConf { conf, errors, warnings } = utils:: conf:: read ( & file_name) ;
474
474
// all conf errors are non-fatal, we just use the default conf in case of error
475
475
for error in errors {
476
- sess. err ( & format ! (
476
+ sess. err ( format ! (
477
477
"error reading Clippy's configuration file `{}`: {}" ,
478
478
file_name. display( ) ,
479
479
format_error( error)
0 commit comments