Skip to content

Commit

Permalink
Simplify expression
Browse files Browse the repository at this point in the history
  • Loading branch information
gferon committed Oct 22, 2024
1 parent 695e1d6 commit 901c922
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sender.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use core::time;

Check warning on line 1 in src/sender.rs

View workflow job for this annotation

GitHub Actions / clippy

unused import: `core::time`

warning: unused import: `core::time` --> src/sender.rs:1:5 | 1 | use core::time; | ^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
use std::{collections::HashSet, time::SystemTime};

use chrono::prelude::*;
Expand Down Expand Up @@ -508,7 +509,7 @@ where
/// Send a message (`content`) to an address (`recipient`).
#[tracing::instrument(
level = "trace",
skip(self, unidentified_access, content_body, recipient),
skip(self, unidentified_access),
fields(unidentified_access = unidentified_access.is_some(), recipient = %recipient),
)]
async fn try_send_message(
Expand Down Expand Up @@ -1064,8 +1065,7 @@ where
expiration_start_timestamp: data_message
.as_ref()
.and_then(|m| m.expire_timer)
.is_some()
.then_some(timestamp),
.map(|_| timestamp),
message: data_message,
edit_message,
timestamp: Some(timestamp),
Expand Down

0 comments on commit 901c922

Please sign in to comment.