warning: unused import: `CannonicalPath`
--> src/pending.rs:11:19
|
11 | use crate::path::{CannonicalPath, CannonicalPathBuf};
| ^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused import: `std::iter::Map`
--> src/tree.rs:2:5
|
2 | use std::iter::Map;
| ^^^^^^^^^^^^^^
warning: method `remove_watch` is never used
--> src/inotify/sys.rs:57:19
|
33 | impl Inotify {
| ------------ method in this implementation
...
57 | pub(super) fn remove_watch(&self, watch: Watch) -> io::Result<()> {
| ^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: constant `PATH_SEPERATOR_STR` is never used
--> src/path.rs:16:7
|
16 | const PATH_SEPERATOR_STR: &[u8] = b"/";
| ^^^^^^^^^^^^^^^^^^
warning: method `remove` is never used
--> src/pending.rs:110:12
|
105 | impl PendingChanges {
| ------------------- method in this implementation
...
110 | pub fn remove(&mut self, path: impl AsRef<OsStr>) -> bool {
| ^^^^^^
warning: method `is_none` is never used
--> src/tree.rs:115:12
|
112 | impl NodeId {
| ----------- method in this implementation
...
115 | pub fn is_none(self) -> bool {
| ^^^^^^^
warning: unused import: `assert_ne`
--> src/tests.rs:1:36
|
1 | use pretty_assertions::{assert_eq, assert_ne};
| ^^^^^^^^^
warning: unused import: `read_dir`
--> src/tests.rs:2:21
|
2 | use std::fs::{self, read_dir};
| ^^^^^^^^
warning: `filesentry` (lib) generated 6 warnings (run `cargo fix --lib -p filesentry` to apply 2 suggestions)
warning: `filesentry` (lib test) generated 8 warnings (6 duplicates) (run `cargo fix --lib -p filesentry --tests` to apply 2 suggestions)
Finished `release` profile [optimized] target(s) in 0.02s
Running unittests src/lib.rs (target/release/deps/filesentry-b2f216729cdc6a83)
error: test failed, to rerun pass `--lib`