File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 runs-on : ubuntu-latest
1414
1515 steps :
16- - run : rustup component add clippy rustfmt
1716 - uses : actions/checkout@v4
17+ - run : rustup toolchain install --profile minimal
1818 - name : Rust Cache
1919 uses : Swatinem/rust-cache@v2
2020 - name : Check format
3434 target : [x86_64-unknown-linux-musl, x86_64-pc-windows-gnu]
3535 steps :
3636 - uses : actions/checkout@v4
37+ - run : rustup toolchain install --profile minimal
3738 - name : Rust Cache
3839 uses : Swatinem/rust-cache@v2
3940 with :
Original file line number Diff line number Diff line change 1+ [toolchain ]
2+ channel = " 1.96.0"
3+ components = [" clippy" , " rustfmt" ]
Original file line number Diff line number Diff line change @@ -30,13 +30,11 @@ pub(crate) fn prompt() -> String {
3030 eprint ! ( "{}" , c) ;
3131 let _ = stderr ( ) . flush ( ) ;
3232 }
33- KeyCode :: Backspace => {
34- if !line. is_empty ( ) {
35- line. pop ( ) ;
33+ KeyCode :: Backspace if !line. is_empty ( ) => {
34+ line. pop ( ) ;
3635
37- eprint ! ( "\x08 \x08 " ) ;
38- let _ = stderr ( ) . flush ( ) ;
39- }
36+ eprint ! ( "\x08 \x08 " ) ;
37+ let _ = stderr ( ) . flush ( ) ;
4038 }
4139 _ => { }
4240 }
You can’t perform that action at this time.
0 commit comments