Skip to content

Commit 283e41b

Browse files
authored
Merge pull request rusterlium#12 from avencera/clippy
Fix clippy warnings
2 parents 3749f04 + 500457d commit 283e41b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

serde_rustler/src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use quick_error::quick_error;
22
use rustler::Error as NifError;
33
use serde::{de, ser};
4-
use std::{error::Error as StdError, fmt::Display};
4+
use std::fmt::Display;
55

66
quick_error! {
77
#[derive(Debug)]
@@ -118,7 +118,7 @@ quick_error! {
118118

119119
impl From<Error> for NifError {
120120
fn from(err: Error) -> NifError {
121-
NifError::RaiseTerm(Box::new(String::from(err.to_string())))
121+
NifError::RaiseTerm(Box::new(err.to_string()))
122122
}
123123
}
124124

0 commit comments

Comments
 (0)