Skip to content

Commit e844e3a

Browse files
committed
Add std::path::Path::trim_trailing_sep
1 parent 919f576 commit e844e3a

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
@@ -394,6 +394,7 @@ generate! {
394394
trim_right,
395395
trim_start,
396396
trim_start_matches,
397+
trim_trailing_sep,
397398
truncate,
398399
try_for_each,
399400
unreachable_pub,

0 commit comments

Comments
 (0)