diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 44d4996e..209a54bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,5 +49,8 @@ jobs: - name: Tests run: cargo llvm-cov nextest --all ${{ matrix.flags }} --lcov --output-path lcov.info + - name: Check lockfile + run: cargo check --locked ${{ matrix.flags }} --all-targets --all + - name: Doctests run: cargo test --doc ${{ matrix.flags }} diff --git a/Cargo.lock b/Cargo.lock index b2aa8d37..1b45d2df 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -684,7 +684,7 @@ dependencies = [ [[package]] name = "reedline" -version = "0.32.0" +version = "0.33.0" dependencies = [ "arboard", "chrono", diff --git a/src/engine.rs b/src/engine.rs index e4da6e6a..3c4fa2a0 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -1658,10 +1658,10 @@ impl Reedline { match &mut self.buffer_editor { Some(BufferEditor { ref mut command, - temp_file, + ref temp_file, }) => { { - let mut file = File::create(&temp_file)?; + let mut file = File::create(temp_file)?; write!(file, "{}", self.editor.get_buffer())?; } { diff --git a/src/menu/ide_menu.rs b/src/menu/ide_menu.rs index fac1feab..24d6ad94 100644 --- a/src/menu/ide_menu.rs +++ b/src/menu/ide_menu.rs @@ -1054,10 +1054,7 @@ fn truncate_string_list(list: &mut [String], truncation_chars: &str) { let mut new_line = String::new(); for grapheme in chars.into_iter().rev() { if to_replace > 0 { - new_line.insert_str( - 0, - &truncation_chars[truncation_len - to_replace].to_string(), - ); + new_line.insert(0, truncation_chars[truncation_len - to_replace]); to_replace -= 1; } else { new_line.insert_str(0, grapheme);