Skip to content

Commit

Permalink
Merge pull request rusterlium#12 from avencera/clippy
Browse files Browse the repository at this point in the history
Fix clippy warnings
  • Loading branch information
sunny-g authored Mar 7, 2020
2 parents 3749f04 + 500457d commit 283e41b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions serde_rustler/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use quick_error::quick_error;
use rustler::Error as NifError;
use serde::{de, ser};
use std::{error::Error as StdError, fmt::Display};
use std::fmt::Display;

quick_error! {
#[derive(Debug)]
Expand Down Expand Up @@ -118,7 +118,7 @@ quick_error! {

impl From<Error> for NifError {
fn from(err: Error) -> NifError {
NifError::RaiseTerm(Box::new(String::from(err.to_string())))
NifError::RaiseTerm(Box::new(err.to_string()))
}
}

Expand Down

0 comments on commit 283e41b

Please sign in to comment.