Skip to content

Commit

Permalink
chore: ensure lockfile up-to-date (#812)
Browse files Browse the repository at this point in the history
* chore: ensure lockfile up-to-date

Signed-off-by: tison <[email protected]>

* fixup clippy warnings

Signed-off-by: tison <[email protected]>

* fixup gha syntax

Signed-off-by: tison <[email protected]>

---------

Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun authored Aug 5, 2024
1 parent 919292e commit e064b64
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())?;
}
{
Expand Down
5 changes: 1 addition & 4 deletions src/menu/ide_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e064b64

Please sign in to comment.