Skip to content

Commit 78f7521

Browse files
fixup! Slient some clippy warnings
1 parent 91325b4 commit 78f7521

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/ticketer.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,13 @@ fn try_split_at(data: &[u8], at: usize) -> Option<(&[u8], &[u8])> {
3131
pub struct Ticketer {}
3232

3333
impl Ticketer {
34-
#[allow(clippy::new_ret_no_self)]
34+
#[allow(clippy::new_ret_no_self, clippy::missing_errors_doc)]
3535
pub fn new() -> Result<Arc<dyn ProducesTickets>, Error> {
3636
Ok(Arc::new(TicketRotator::new(
37-
#[allow(clippy::cast_possible_truncation)] { time::Duration::from_secs(6 * 60 * 60).as_secs() as u32 },
37+
#[allow(clippy::cast_possible_truncation)]
38+
{
39+
time::Duration::from_secs(6 * 60 * 60).as_secs() as u32
40+
},
3841
|| Ok(Box::new(AeadTicketProducer::new()?)),
3942
)?))
4043
}

0 commit comments

Comments
 (0)