Skip to content

Commit a807065

Browse files
committed
remove log and futures crates
1 parent 5d02a2d commit a807065

File tree

3 files changed

+2
-153
lines changed

3 files changed

+2
-153
lines changed

Cargo.lock

Lines changed: 0 additions & 146 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ authors = ["Frederik Bosch <f.bosch@genkgo.nl>"]
77

88
[dependencies]
99
notify = "6.1.1"
10-
futures = "0.3"
11-
log = "0.4.17"
12-
env_logger = "0.10.0"
1310
phper = "0.13.1"
1411

1512
[dev-dependencies]

src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ pub fn get_module() -> Module {
1313
env!("CARGO_PKG_AUTHORS"),
1414
);
1515

16-
env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info")).init();
17-
1816
let mut event = ClassEntity::new("FsNotify\\Event");
1917
event.add_property("kind", Visibility::Private, ());
2018
event.add_property("paths", Visibility::Private, ());
@@ -81,7 +79,6 @@ pub fn get_module() -> Module {
8179
};
8280

8381
watcher.watch(&path, recursive).unwrap();
84-
log::info!("Watching: {path:?}")
8582
}
8683

8784
for res in rx {
@@ -150,7 +147,8 @@ pub fn get_module() -> Module {
150147

151148
handler.call([ZVal::from(php_event)])?;
152149
},
153-
Err(error) => log::error!("Error: {error:?}"),
150+
Err(_) => {
151+
},
154152
}
155153
}
156154

0 commit comments

Comments
 (0)