Skip to content

Commit

Permalink
Prettier reference to &self.uuid in user.last_active
Browse files Browse the repository at this point in the history
  • Loading branch information
janost committed Dec 1, 2020
1 parent e80bf27 commit 3ca8222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/models/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ impl User {
}

pub fn last_active(&self, conn: &DbConn) -> Option<NaiveDateTime> {
let last_device = Device::find_latest_active_by_user(self.uuid.as_str(), conn);
let last_device = Device::find_latest_active_by_user(&self.uuid, conn);
match last_device {
Some(device) => Some(device.updated_at),
None => None
Expand Down

0 comments on commit 3ca8222

Please sign in to comment.