Skip to content

Commit cb40243

Browse files
committed
docs
1 parent d076817 commit cb40243

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/path_from_format.rs

+2-2
Original file line numberDiff line numberDiff 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
);

0 commit comments

Comments
 (0)