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 {
77
77
expr. span,
78
78
"`format!(..)` used to form `PathBuf`" ,
79
79
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" ,
81
81
) ;
82
82
return ;
83
83
}
@@ -114,7 +114,7 @@ impl<'tcx> LateLintPass<'tcx> for PathFromFormat {
114
114
PATH_FROM_FORMAT ,
115
115
expr. span,
116
116
"`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" ,
118
118
sugg,
119
119
Applicability :: MaybeIncorrect ,
120
120
) ;
You can’t perform that action at this time.
0 commit comments