File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 steps :
1515 - uses : actions/checkout@v3
1616
17- - uses : actions-rs/ toolchain@v1
17+ - uses : dtolnay/rust- toolchain@nightly
1818 with :
19- profile : minimal
2019 components : rustfmt, clippy
21- toolchain : stable
22- override : true
2320
2421 - uses : Swatinem/rust-cache@v2
2522
3431
3532 - name : Create Clippy output job
3633 if : success() || failure() # run regardless of prior step
37- uses : actions-rs/clippy-check@v1
34+ uses : actions-rs-plus /clippy-check@main
3835 with :
39- token : ${{ secrets.GITHUB_TOKEN }}
4036 args : --all-targets --all-features -- -W clippy::pedantic -W clippy::cargo -W clippy::nursery -D warnings
41- name : Clippy Result
4237
4338 - name : Clippy check
4439 run : cargo clippy
Original file line number Diff line number Diff line change 3232 steps :
3333 - uses : actions/checkout@v3
3434
35- - uses : actions-rs/toolchain@v1
36- with :
37- profile : minimal
38- toolchain : stable
39- override : true
35+ - uses : dtolnay/rust-toolchain@nightly
4036
4137 - uses : Swatinem/rust-cache@v2
4238
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ pub trait Theme {
4343
4444 if highlight_matches {
4545 if let Some ( ( _score, indices) ) = matcher. fuzzy_indices ( text, search_term) {
46- for ( idx, c) in text. chars ( ) . into_iter ( ) . enumerate ( ) {
46+ for ( idx, c) in text. chars ( ) . enumerate ( ) {
4747 if indices. contains ( & idx) {
4848 write ! ( f, "{}" , style( c) . for_stderr( ) . bold( ) ) ?;
4949 } else {
@@ -239,7 +239,7 @@ impl Theme for ColorfulTheme {
239239
240240 if highlight_matches {
241241 if let Some ( ( _score, indices) ) = matcher. fuzzy_indices ( text, search_term) {
242- for ( idx, c) in text. chars ( ) . into_iter ( ) . enumerate ( ) {
242+ for ( idx, c) in text. chars ( ) . enumerate ( ) {
243243 if text. starts_with ( '\u{1f5a5}' ) && c == ' ' && active {
244244 continue ; // fix `🖥️ ..` is printed as `🖥️ ..`
245245 } ;
You can’t perform that action at this time.
0 commit comments