Skip to content

Commit 0f0c2f2

Browse files
authored
explicitly declare lazy_static dependency
`benches/bench.rs` uses lazy_static but Cargo.toml does not declare a dependency on it. This causes rustc to use its own internal private copy instead. Sometimes this causes unintuitive errors like Debian bug [942243](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=942243). The underlying issue is rust-lang/rust#27812 but it can be avoided by explicitly declaring the dependency, which you are supposed to do anyways.
1 parent 8892bf6 commit 0f0c2f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

globset/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ regex = "1.1.5"
2727

2828
[dev-dependencies]
2929
glob = "0.3.0"
30+
lazy_static = "1"
3031

3132
[features]
3233
simd-accel = []

0 commit comments

Comments
 (0)