Skip to content

Commit b6b7409

Browse files
committed
Add std::path::Path::trim_trailing_sep
1 parent cfda1d9 commit b6b7409

File tree

2 files changed

+2
-0
lines changed
  • clippy_lints/src/needless_conversion_for_trait
  • clippy_utils/src

2 files changed

+2
-0
lines changed

clippy_lints/src/needless_conversion_for_trait/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ const IGNORED_INHERENT_FUNCTIONS: &[ConfPath<SymPath<'static>, false>] = conf_pa
183183
&[sym::std, sym::ffi, sym::os_str, sym::OsStr, sym::to_ascii_lowercase],
184184
&[sym::std, sym::ffi, sym::os_str, sym::OsStr, sym::to_ascii_uppercase],
185185
&[sym::std, sym::ffi, sym::os_str, sym::OsString, sym::leak],
186+
&[sym::std, sym::path, sym::Path, sym::trim_trailing_sep],
186187
&[sym::std, sym::path, sym::PathBuf, sym::leak],
187188
);
188189

clippy_utils/src/sym.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ generate! {
384384
trim_right,
385385
trim_start,
386386
trim_start_matches,
387+
trim_trailing_sep,
387388
truncate,
388389
try_for_each,
389390
unreachable_pub,

0 commit comments

Comments
 (0)