We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d209c2e commit 282bf50Copy full SHA for 282bf50
1 file changed
src/types/mod.rs
@@ -813,8 +813,7 @@ impl ToSql for HashMap<String, Option<String>> {
813
814
fn downcast(len: usize) -> Result<i32> {
815
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))
+ Err(Error::Conversion("value too large to transmit".into()))
818
} else {
819
Ok(len as i32)
820
}
0 commit comments