diff options
| author | Tobias Bucher <tobiasbucher5991@gmail.com> | 2024-05-23 08:09:52 +0200 |
|---|---|---|
| committer | Tobias Bucher <tobiasbucher5991@gmail.com> | 2024-05-23 08:09:52 +0200 |
| commit | 3ac1a804d12a9896e1616f4e187c3f2710f42d24 (patch) | |
| tree | 04e8766599f6a488ef0e1c4796f5e817ed61238b /src | |
| parent | f0038a7c8fd8b5b8a949c92ae6419bcb59a09e72 (diff) | |
| download | rust-3ac1a804d12a9896e1616f4e187c3f2710f42d24.tar.gz rust-3ac1a804d12a9896e1616f4e187c3f2710f42d24.zip | |
Remove unneeded string conversion
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/tidy/src/style.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/tidy/src/style.rs b/src/tools/tidy/src/style.rs index 9cabab582d0..64cc2277620 100644 --- a/src/tools/tidy/src/style.rs +++ b/src/tools/tidy/src/style.rs @@ -243,7 +243,7 @@ pub fn is_in(full_path: &Path, parent_folder_to_find: &str, folder_to_find: &str if parent.file_name().map_or_else( || false, |f| { - f.to_string_lossy() == folder_to_find + f == folder_to_find && parent .parent() .and_then(|f| f.file_name()) |
