Compare commits

...

3 Commits

Author SHA1 Message Date
Andrew Gallant
17ef4c40f3 ignore-0.4.6 2018-12-30 08:46:09 -05:00
Andrew Gallant
a9e0477ea8 ignore: permit use of deprecated trim_right 2018-12-30 08:44:59 -05:00
Andrew Gallant
b3c5773266 deps: bump ignore 2018-12-30 08:43:18 -05:00
3 changed files with 5 additions and 4 deletions

4
Cargo.lock generated
View File

@@ -256,7 +256,7 @@ dependencies = [
[[package]] [[package]]
name = "ignore" name = "ignore"
version = "0.4.4" version = "0.4.6"
dependencies = [ dependencies = [
"crossbeam-channel 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", "crossbeam-channel 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"globset 0.4.2", "globset 0.4.2",
@@ -523,7 +523,7 @@ version = "0.10.0"
dependencies = [ dependencies = [
"clap 2.32.0 (registry+https://github.com/rust-lang/crates.io-index)", "clap 2.32.0 (registry+https://github.com/rust-lang/crates.io-index)",
"grep 0.2.3", "grep 0.2.3",
"ignore 0.4.4", "ignore 0.4.6",
"lazy_static 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
"num_cpus 1.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "num_cpus 1.9.0 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "ignore" name = "ignore"
version = "0.4.5" #:version version = "0.4.6" #:version
authors = ["Andrew Gallant <jamslam@gmail.com>"] authors = ["Andrew Gallant <jamslam@gmail.com>"]
description = """ description = """
A fast library for efficiently matching ignore files such as `.gitignore` A fast library for efficiently matching ignore files such as `.gitignore`
@@ -32,7 +32,6 @@ walkdir = "2.2.5"
version = "0.1.1" version = "0.1.1"
[dev-dependencies] [dev-dependencies]
# tempdir = "0.3.7"
tempfile = "3.0.5" tempfile = "3.0.5"
[features] [features]

View File

@@ -419,6 +419,8 @@ impl GitignoreBuilder {
from: Option<PathBuf>, from: Option<PathBuf>,
mut line: &str, mut line: &str,
) -> Result<&mut GitignoreBuilder, Error> { ) -> Result<&mut GitignoreBuilder, Error> {
#![allow(deprecated)]
if line.starts_with("#") { if line.starts_with("#") {
return Ok(self); return Ok(self);
} }