From acadfc80fd96b2d2f50d97733bdf3fa421462074 Mon Sep 17 00:00:00 2001 From: Philip Jenvey Date: Tue, 24 Mar 2020 15:21:04 -0700 Subject: [PATCH] refactor: clippy --- src/db/mysql/models.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/mysql/models.rs b/src/db/mysql/models.rs index db11ec205a..77deaa2c54 100644 --- a/src/db/mysql/models.rs +++ b/src/db/mysql/models.rs @@ -384,7 +384,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#"