fix: cargo clippy for rust 1.42

This commit is contained in:
Donovan Preston 2020-03-12 13:08:44 -04:00
parent 442c4c05a1
commit 546d96ca28
No known key found for this signature in database
GPG Key ID: B43EF44E428C806E

View File

@ -379,7 +379,7 @@ impl MysqlDb {
let timestamp = self.timestamp().as_i64();
self.conn.transaction(|| {
let payload = bso.payload.as_ref().map(Deref::deref).unwrap_or_default();
let payload = bso.payload.as_deref().unwrap_or_default();
let sortindex = bso.sortindex;
let ttl = bso.ttl.map_or(DEFAULT_BSO_TTL, |ttl| ttl);
let q = format!(r#"