Skip to content

Commit 4cb28bf

Browse files
committed
rustfmt + import Serialize
1 parent e54e354 commit 4cb28bf

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

primitives/src/sentry.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -217,20 +217,16 @@ impl fmt::Display for ChannelReport {
217217

218218
pub mod channel_list {
219219
use crate::ValidatorId;
220-
use chrono::{DateTime, Utc, serde::ts_seconds};
221-
use serde::Deserialize;
220+
use chrono::{serde::ts_seconds, DateTime, Utc};
221+
use serde::{Deserialize, Serialize};
222222

223223
#[derive(Debug, Serialize, Deserialize)]
224224
pub struct ChannelListQuery {
225225
#[serde(default = "default_page")]
226226
pub page: u64,
227227
/// filters the list on `valid_until >= valid_until_ge`
228228
/// It should be the same timestamp format as the `Channel.valid_until`: **seconds**
229-
#[serde(
230-
with = "ts_seconds",
231-
default = "Utc::now",
232-
rename = "validUntil"
233-
)]
229+
#[serde(with = "ts_seconds", default = "Utc::now", rename = "validUntil")]
234230
pub valid_until_ge: DateTime<Utc>,
235231
pub creator: Option<String>,
236232
/// filters the channels containing a specific validator if provided

0 commit comments

Comments
 (0)