Skip to content

Commit 8db7ef7

Browse files
committed
Add std::path::Path::trim_trailing_sep
1 parent c4ef23d commit 8db7ef7

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
@@ -184,6 +184,7 @@ const IGNORED_INHERENT_FUNCTIONS: &[ConfPath<SymPath<'static>, false>] = conf_pa
184184
&[sym::std, sym::ffi, sym::os_str, sym::OsStr, sym::to_ascii_lowercase],
185185
&[sym::std, sym::ffi, sym::os_str, sym::OsStr, sym::to_ascii_uppercase],
186186
&[sym::std, sym::ffi, sym::os_str, sym::OsString, sym::leak],
187+
&[sym::std, sym::path, sym::Path, sym::trim_trailing_sep],
187188
&[sym::std, sym::path, sym::PathBuf, sym::leak],
188189
);
189190

clippy_utils/src/sym.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ generate! {
402402
trim_right,
403403
trim_start,
404404
trim_start_matches,
405+
trim_trailing_sep,
405406
truncate,
406407
try_fold,
407408
try_for_each,

0 commit comments

Comments
 (0)