summary history branches tags files
commit:15214bc6fcfec2f8f0eb45203d7a9f15b9d53085
author:Trevor Bentley
committer:GitHub
date:Wed Aug 26 17:31:39 2020 +0200
parents:6626938489cb99c9c2bce397f97c0a411c69c36d, 68f3cfc99ab8dcc5e7f26c3d6333adc3a109785f
Merge pull request #23 from LoganDark/tostring

Remove usage of deprecated .description()
diff --git a/src/lib.rs b/src/lib.rs
line changes: +2/-2
index 60ccd68..49622df
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -278,7 +278,7 @@ impl std::fmt::Display for FruitError {
 }
 impl From<std::io::Error> for FruitError {
     fn from(error: std::io::Error) -> Self {
-        FruitError::IOError(error.description().to_owned())
+        FruitError::IOError(error.to_string())
     }
 }
 impl Error for FruitError {
@@ -407,7 +407,7 @@ pub fn create_logger(filename: &str,
         .unwrap();
     match log4rs::init_config(config) {
         Ok(_) => Ok(log_path),
-        Err(e) => Err(e.description().to_string()),
+        Err(e) => Err(e.to_string()),
     }
 }
 /// Enable logging to rolling log files with Rust `log` library