Skip to content

Commit

Permalink
Merge branch 'sd/202503_2' into sd/202503_3
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuichiueda committed Dec 30, 2024
2 parents b789a1a + b2c32e7 commit f25034c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sush"
version = "2025.3.1"
version = "2025.3.2"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
8 changes: 4 additions & 4 deletions src/utils/glob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ fn eat_string(pattern: &mut String, ans: &mut Vec<GlobElem>) -> bool {
}

fn consume(remaining: &mut String, cutpos: usize) -> String {
let cut = remaining[0..cutpos].to_string();
*remaining = remaining.split_off(cutpos);

cut
let back = remaining.split_off(cutpos);
let front = remaining.clone();
*remaining = back;
front
}

0 comments on commit f25034c

Please sign in to comment.