chore: ensure lockfile up-to-date (#812)

* chore: ensure lockfile up-to-date

Signed-off-by: tison <wander4096@gmail.com>

* fixup clippy warnings

Signed-off-by: tison <wander4096@gmail.com>

* fixup gha syntax

Signed-off-by: tison <wander4096@gmail.com>

---------

Signed-off-by: tison <wander4096@gmail.com>
This commit is contained in:
tison 2024-08-06 00:02:07 +08:00 committed by GitHub
parent 919292e40f
commit e064b64519
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 7 deletions

View File

@ -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
Cargo.lock generated
View File

@ -684,7 +684,7 @@ dependencies = [
[[package]]
name = "reedline"
version = "0.32.0"
version = "0.33.0"
dependencies = [
"arboard",
"chrono",

View File

@ -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())?;
}
{

View File

@ -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);