Skip to content

Commit e9d59aa

Browse files
committed
rustfmt
1 parent 3636a77 commit e9d59aa

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/bin/monitor.rs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,7 @@ fn check_spam_attack(conn: &PgConnection) -> CargoResult<()> {
8787
.optional()?;
8888

8989
if let Some(bad_crate) = bad_crate {
90-
event_description = Some(
91-
format!("Crate named {} published", bad_crate)
92-
);
90+
event_description = Some(format!("Crate named {} published", bad_crate));
9391
}
9492

9593
let mut query = version_authors::table
@@ -102,18 +100,13 @@ fn check_spam_attack(conn: &PgConnection) -> CargoResult<()> {
102100
let bad_author = query.first::<String>(conn).optional()?;
103101

104102
if let Some(bad_author) = bad_author {
105-
event_description = Some(
106-
format!("Crate with author {} published", bad_author)
107-
);
103+
event_description = Some(format!("Crate with author {} published", bad_author));
108104
}
109105

110106
let event = if let Some(event_description) = event_description {
111107
on_call::Event::Trigger {
112108
incident_key: Some(EVENT_KEY.into()),
113-
description: format!(
114-
"{}, possible spam attack underway",
115-
event_description,
116-
),
109+
description: format!("{}, possible spam attack underway", event_description,),
117110
}
118111
} else {
119112
on_call::Event::Resolve {

0 commit comments

Comments
 (0)