summary history branches tags files
commit:c2f050344695bd05402f377497f6b3e49fc936d0
author:Trevor Bentley
committer:Trevor Bentley
date:Wed Jul 10 11:09:58 2019 +0200
parents:05a7d39507b62b18178aa33e7358ebfb2ba346a1
remove unneeded logging features (drops 30 dependencies)
diff --git a/Cargo.toml b/Cargo.toml
line changes: +4/-3
index a216574..268161c
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,13 +16,14 @@ dummy = []
 
 [dependencies]
 time = "0.1"
-log = {version = "0.4", optional = true }
-dirs = "1.0.4"
+log = {version = "0.4", optional = true, default-features = false, features = ["std"] }
+dirs = "^2.0"
 
 [dependencies.log4rs]
 version = "0.8"
 optional = true
-features = ["rolling_file_appender"]
+default-features = false
+features = ["console_appender","rolling_file_appender", "compound_policy", "fixed_window_roller", "size_trigger"]
 
 [dev-dependencies]
 log = "0.4"

diff --git a/src/lib.rs b/src/lib.rs
line changes: +1/-1
index 73e1d9e..cfc71f6
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -280,7 +280,7 @@ impl Error for FruitError {
     fn description(&self) -> &str {
         "Hmm"
     }
-    fn cause(&self) -> Option<&Error> {
+    fn cause(&self) -> Option<&dyn Error> {
         None
     }
 }

diff --git a/src/osx.rs b/src/osx.rs
line changes: +1/-1
index efe224f..b1745c3
--- a/src/osx.rs
+++ b/src/osx.rs
@@ -119,7 +119,7 @@ pub struct FruitApp {
 }
 
 /// A boxed Fn type for receiving Rust callbacks from ObjC events
-pub type FruitObjcCallback = Box<Fn(*mut Object)>;
+pub type FruitObjcCallback = Box<dyn Fn(*mut Object)>;
 
 /// Key into the ObjC callback hash map
 ///