Skip to content

Commit

Permalink
refactor: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
pjenvey committed Mar 24, 2020
1 parent 58f2051 commit acadfc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/mysql/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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#"
Expand Down

0 comments on commit acadfc8

Please sign in to comment.