Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Fiedzia committed Jul 18, 2017
1 parent 9fec91c commit 956c734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diesel/src/mysql/types/numeric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub mod bigdecimal {
fn from_sql(bytes: Option<&[u8]>) -> Result<Self, Box<Error+Send+Sync>> {
let bytes = not_none!(bytes);
BigDecimal::parse_bytes(bytes, 10)
.ok_or(Box::from(format!("{:?} is not valid decimal number ", bytes)))
.ok_or_else(|| Box::from(format!("{:?} is not valid decimal number ", bytes)))
}
}

Expand Down

0 comments on commit 956c734

Please sign in to comment.