Skip to content

Commit d540b52

Browse files
KixironJoshua Nelson
andcommitted
Update src/bin/cratesfyi.rs
Co-Authored-By: Joshua Nelson <[email protected]>
1 parent a7a562c commit d540b52

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/bin/cratesfyi.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,10 @@ pub fn main() {
333333
.expect("You must give a pattern to remove");
334334
let conn = connect_db().expect("Could not connect to the database");
335335

336-
if remove_crate_priority(&conn, pattern)
336+
if let Some(priority) = remove_crate_priority(&conn, pattern)
337337
.expect("Could not remove pattern's priority")
338-
.is_some()
339338
{
340-
println!("Removed pattern");
339+
println!("Removed pattern with priority {}", priority);
341340
} else {
342341
println!("Pattern did not exist and so was not removed");
343342
}

0 commit comments

Comments
 (0)