Skip to content

Commit

Permalink
deps: upgrade bstr to 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed Jan 5, 2023
1 parent 8596817 commit ac8fecb
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 11 deletions.
7 changes: 4 additions & 3 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ members = [
]

[dependencies]
bstr = "0.2.12"
bstr = "1.1.0"
grep = { version = "0.2.8", path = "crates/grep" }
ignore = { version = "0.4.18", path = "crates/ignore" }
lazy_static = "1.1.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ edition = "2018"

[dependencies]
atty = "0.2.11"
bstr = "0.2.0"
bstr = "1.1.0"
globset = { version = "0.4.9", path = "../globset" }
lazy_static = "1.1.0"
log = "0.4.5"
Expand Down
2 changes: 1 addition & 1 deletion crates/core/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ fn parse<P: AsRef<Path>>(
fn parse_reader<R: io::Read>(
rdr: R,
) -> Result<(Vec<OsString>, Vec<Box<dyn Error>>)> {
let bufrdr = io::BufReader::new(rdr);
let mut bufrdr = io::BufReader::new(rdr);
let (mut args, mut errs) = (vec![], vec![]);
let mut line_number = 0;
bufrdr.for_byte_line_with_terminator(|line| {
Expand Down
2 changes: 1 addition & 1 deletion crates/globset/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ bench = false

[dependencies]
aho-corasick = "0.7.3"
bstr = { version = "0.2.0", default-features = false, features = ["std"] }
bstr = { version = "1.1.0", default-features = false, features = ["std"] }
fnv = "1.0.6"
log = { version = "0.4.5", optional = true }
regex = { version = "1.1.5", default-features = false, features = ["perf", "std"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/printer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ serde1 = ["base64", "serde", "serde_json"]

[dependencies]
base64 = { version = "0.13.0", optional = true }
bstr = "0.2.0"
bstr = "1.1.0"
grep-matcher = { version = "0.1.5", path = "../matcher" }
grep-searcher = { version = "0.1.8", path = "../searcher" }
termcolor = "1.0.4"
Expand Down
2 changes: 1 addition & 1 deletion crates/regex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ edition = "2018"

[dependencies]
aho-corasick = "0.7.3"
bstr = "0.2.10"
bstr = "1.1.0"
grep-matcher = { version = "0.1.5", path = "../matcher" }
log = "0.4.5"
regex = "1.1"
Expand Down
2 changes: 1 addition & 1 deletion crates/searcher/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ license = "Unlicense OR MIT"
edition = "2018"

[dependencies]
bstr = { version = "0.2.0", default-features = false, features = ["std"] }
bstr = { version = "1.1.0", default-features = false, features = ["std"] }
bytecount = "0.6"
encoding_rs = "0.8.14"
encoding_rs_io = "0.1.6"
Expand Down
2 changes: 1 addition & 1 deletion crates/searcher/src/line_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ impl LineBuffer {
}

let roll_len = self.end - self.pos;
self.buf.copy_within_str(self.pos..self.end, 0);
self.buf.copy_within(self.pos..self.end, 0);
self.pos = 0;
self.last_lineterm = roll_len;
self.end = roll_len;
Expand Down

0 comments on commit ac8fecb

Please sign in to comment.