Skip to content

Commit 282bf50

Browse files
committed
Error cleanup
1 parent d209c2e commit 282bf50

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/types/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -813,8 +813,7 @@ impl ToSql for HashMap<String, Option<String>> {
813813

814814
fn downcast(len: usize) -> Result<i32> {
815815
if len > i32::max_value() as usize {
816-
let err: Box<error::Error + Sync + Send> = "value too large to transmit".into();
817-
Err(Error::Conversion(err))
816+
Err(Error::Conversion("value too large to transmit".into()))
818817
} else {
819818
Ok(len as i32)
820819
}

0 commit comments

Comments
 (0)