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]]
name = "ignore"
version = "0.4.4"
version = "0.4.6"
dependencies = [
"crossbeam-channel 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"globset 0.4.2",
@@ -523,7 +523,7 @@ version = "0.10.0"
dependencies = [
"clap 2.32.0 (registry+https://github.com/rust-lang/crates.io-index)",
"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)",
"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)",

View File

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

View File

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