File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ impl<'tcx> LateLintPass<'tcx> for PathFromFormat {
7777 expr. span,
7878 "`format!(..)` used to form `PathBuf`" ,
7979 None ,
80- "if it fits your use case, you may want to consider using `Path::new()` and `.join()` to make it OS-agnostic and improve code readability. " ,
80+ "if it fits your use case, you may want to consider using `Path::new()` and `.join()` to make it OS-agnostic and improve code readability" ,
8181 ) ;
8282 return ;
8383 }
@@ -114,7 +114,7 @@ impl<'tcx> LateLintPass<'tcx> for PathFromFormat {
114114 PATH_FROM_FORMAT ,
115115 expr. span,
116116 "`format!(..)` used to form `PathBuf`" ,
117- "consider using `Path::new()` and `.join()` to make it OS-agnostic and improve code readability. " ,
117+ "consider using `Path::new()` and `.join()` to make it OS-agnostic and improve code readability" ,
118118 sugg,
119119 Applicability :: MaybeIncorrect ,
120120 ) ;
You can’t perform that action at this time.
0 commit comments