@@ -417,7 +417,7 @@ pub fn register_pre_expansion_lints(store: &mut rustc_lint::LintStore, sess: &Se
417417
418418 let msrv = conf. msrv . as_ref ( ) . and_then ( |s| {
419419 parse_msrv ( s, None , None ) . or_else ( || {
420- sess. err ( & format ! (
420+ sess. err ( format ! (
421421 "error reading Clippy's configuration file. `{s}` is not a valid Rust version"
422422 ) ) ;
423423 None
@@ -433,7 +433,7 @@ fn read_msrv(conf: &Conf, sess: &Session) -> Option<RustcVersion> {
433433 . and_then ( |v| parse_msrv ( & v, None , None ) ) ;
434434 let clippy_msrv = conf. msrv . as_ref ( ) . and_then ( |s| {
435435 parse_msrv ( s, None , None ) . or_else ( || {
436- sess. err ( & format ! (
436+ sess. err ( format ! (
437437 "error reading Clippy's configuration file. `{s}` is not a valid Rust version"
438438 ) ) ;
439439 None
@@ -444,7 +444,7 @@ fn read_msrv(conf: &Conf, sess: &Session) -> Option<RustcVersion> {
444444 if let Some ( clippy_msrv) = clippy_msrv {
445445 // if both files have an msrv, let's compare them and emit a warning if they differ
446446 if clippy_msrv != cargo_msrv {
447- sess. warn ( & format ! (
447+ sess. warn ( format ! (
448448 "the MSRV in `clippy.toml` and `Cargo.toml` differ; using `{clippy_msrv}` from `clippy.toml`"
449449 ) ) ;
450450 }
@@ -473,7 +473,7 @@ pub fn read_conf(sess: &Session) -> Conf {
473473 let TryConf { conf, errors, warnings } = utils:: conf:: read ( & file_name) ;
474474 // all conf errors are non-fatal, we just use the default conf in case of error
475475 for error in errors {
476- sess. err ( & format ! (
476+ sess. err ( format ! (
477477 "error reading Clippy's configuration file `{}`: {}" ,
478478 file_name. display( ) ,
479479 format_error( error)
0 commit comments