Compare commits
2 Commits
grep-0.2.9
...
grep-searc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33b81cac48 | ||
|
|
6a13a4f64d |
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -224,7 +224,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "grep-searcher"
|
name = "grep-searcher"
|
||||||
version = "0.1.9"
|
version = "0.1.10"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bstr",
|
"bstr",
|
||||||
"bytecount",
|
"bytecount",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "grep-searcher"
|
name = "grep-searcher"
|
||||||
version = "0.1.9" #:version
|
version = "0.1.10" #:version
|
||||||
authors = ["Andrew Gallant <jamslam@gmail.com>"]
|
authors = ["Andrew Gallant <jamslam@gmail.com>"]
|
||||||
description = """
|
description = """
|
||||||
Fast line oriented regex searching as a library.
|
Fast line oriented regex searching as a library.
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ impl<'s, M: Matcher, S: Sink> Core<'s, M, S> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn match_by_line(&mut self, buf: &[u8]) -> Result<bool, S::Error> {
|
pub fn match_by_line(&mut self, buf: &[u8]) -> Result<bool, S::Error> {
|
||||||
if dbg!(self.is_line_by_line_fast()) {
|
if self.is_line_by_line_fast() {
|
||||||
self.match_by_line_fast(buf)
|
self.match_by_line_fast(buf)
|
||||||
} else {
|
} else {
|
||||||
self.match_by_line_slow(buf)
|
self.match_by_line_slow(buf)
|
||||||
|
|||||||
Reference in New Issue
Block a user