@@ -119,8 +119,8 @@ impl EarlyLintPass for ModStyle {
119
119
Span :: new ( file. start_pos , file. start_pos , SyntaxContext :: root ( ) , None ) ,
120
120
|build| {
121
121
let mut lint =
122
- build. build ( & format ! ( "`mod.rs` files are required, found `{}`" , path. display( ) ) ) ;
123
- lint. help ( & format ! ( "move `{}` to `{}`" , path. display( ) , correct. display( ) , ) ) ;
122
+ build. build ( format ! ( "`mod.rs` files are required, found `{}`" , path. display( ) ) ) ;
123
+ lint. help ( format ! ( "move `{}` to `{}`" , path. display( ) , correct. display( ) , ) ) ;
124
124
lint. emit ( ) ;
125
125
} ,
126
126
) ;
@@ -157,8 +157,8 @@ fn check_self_named_mod_exists(cx: &EarlyContext<'_>, path: &Path, file: &Source
157
157
MOD_MODULE_FILES ,
158
158
Span :: new ( file. start_pos , file. start_pos , SyntaxContext :: root ( ) , None ) ,
159
159
|build| {
160
- let mut lint = build. build ( & format ! ( "`mod.rs` files are not allowed, found `{}`" , path. display( ) ) ) ;
161
- lint. help ( & format ! ( "move `{}` to `{}`" , path. display( ) , mod_file. display( ) , ) ) ;
160
+ let mut lint = build. build ( format ! ( "`mod.rs` files are not allowed, found `{}`" , path. display( ) ) ) ;
161
+ lint. help ( format ! ( "move `{}` to `{}`" , path. display( ) , mod_file. display( ) , ) ) ;
162
162
lint. emit ( ) ;
163
163
} ,
164
164
) ;
0 commit comments