We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 16b4671 + 5c0c86c commit abf4e47Copy full SHA for abf4e47
2 files changed
.github/workflows/CICD.yml
@@ -36,7 +36,7 @@ jobs:
36
37
ensure_cargo_fmt:
38
name: Ensure 'cargo fmt' has been run
39
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
40
steps:
41
- uses: dtolnay/rust-toolchain@stable
42
with:
@@ -56,7 +56,7 @@ jobs:
56
57
min_version:
58
name: Minimum supported rust version
59
60
needs: crate_metadata
61
62
- name: Checkout source code
src/dir_entry.rs
@@ -137,7 +137,7 @@ impl Colorable for DirEntry {
137
// but we want it for all component types, so we open code it.
138
// Copied from LsColors::style_for_path_with_metadata().
139
path.components()
140
- .last()
+ .next_back()
141
.map(|c| c.as_os_str())
142
.unwrap_or_else(|| path.as_os_str())
143
}
0 commit comments