Skip to content

Commit 9bbdee2

Browse files
authored
replace actions-rs (#36)
* actions-rs/toolchain -> dtolnay/rust-toolchain@nightly * actions-rs/clippy-check -> actions-rs-plus/clippy-check
1 parent b673c6a commit 9bbdee2

3 files changed

Lines changed: 5 additions & 14 deletions

File tree

.github/workflows/check.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,9 @@ jobs:
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

@@ -34,11 +31,9 @@ jobs:
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

.github/workflows/release.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ jobs:
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

src/structs/prompt_renderer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)