Skip to content

Commit

Permalink
Remove deprecation warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Hardman <[email protected]>
  • Loading branch information
dhh1128 committed Apr 22, 2020
1 parent eb32486 commit ac39004
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions cli/src/command_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use unescape::unescape;
use std::cell::RefCell;
use std::collections::BTreeMap;
use std::collections::HashMap;
use std::error::Error;

use linefeed::{Reader, ReadResult};

Expand Down Expand Up @@ -868,7 +867,7 @@ impl CommandExecutor {
}
}
Err(err) => {
println_err!("{}", err.description().to_string());
println_err!("{}", err.to_string());
println!("Please enter value for {}:", param);
}
}
Expand Down
3 changes: 1 addition & 2 deletions cli/src/utils/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ extern crate log4rs;
extern crate log;
extern crate libc;

use std::error::Error;
use indy;

pub struct IndyCliLogger;

impl IndyCliLogger {
pub fn init(path: &str) -> Result<(), String> {
log4rs::init_file(path, Default::default())
.map_err(|err| format!("Cannot init Indy CLI logger: {}", err.description()))?;
.map_err(|err| format!("Cannot init Indy CLI logger: {}", err.to_string()))?;

indy::logger::set_logger(log::logger())
.map_err(|_| "Cannot init Libindy logger".to_string())
Expand Down

0 comments on commit ac39004

Please sign in to comment.