mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
use shorthand in a fmt string
This commit is contained in:
parent
846e0819de
commit
bec3522eae
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue