File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 36
36
37
37
ensure_cargo_fmt :
38
38
name : Ensure 'cargo fmt' has been run
39
- runs-on : ubuntu-20 .04
39
+ runs-on : ubuntu-22 .04
40
40
steps :
41
41
- uses : dtolnay/rust-toolchain@stable
42
42
with :
56
56
57
57
min_version :
58
58
name : Minimum supported rust version
59
- runs-on : ubuntu-20 .04
59
+ runs-on : ubuntu-22 .04
60
60
needs : crate_metadata
61
61
steps :
62
62
- name : Checkout source code
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ impl Colorable for DirEntry {
137
137
// but we want it for all component types, so we open code it.
138
138
// Copied from LsColors::style_for_path_with_metadata().
139
139
path. components ( )
140
- . last ( )
140
+ . next_back ( )
141
141
. map ( |c| c. as_os_str ( ) )
142
142
. unwrap_or_else ( || path. as_os_str ( ) )
143
143
}
You can’t perform that action at this time.
0 commit comments