From bec3522eae692ebcfdfc027369ad3e5b588578ed Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Tue, 21 Feb 2023 18:45:33 +0400 Subject: [PATCH] use shorthand in a fmt string --- crates/teloxide-core/src/types/seconds.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/teloxide-core/src/types/seconds.rs b/crates/teloxide-core/src/types/seconds.rs index 2168d159..7de00be3 100644 --- a/crates/teloxide-core/src/types/seconds.rs +++ b/crates/teloxide-core/src/types/seconds.rs @@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Copy)] #[derive(PartialEq, Eq, PartialOrd, Ord, Hash)] #[derive(Debug, derive_more::Display)] -#[display(fmt = "{}s", _0)] +#[display(fmt = "{_0}s")] #[derive(Serialize, Deserialize)] #[serde(transparent)] pub struct Seconds(u32);