We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7a562c commit d540b52Copy full SHA for d540b52
src/bin/cratesfyi.rs
@@ -333,11 +333,10 @@ pub fn main() {
333
.expect("You must give a pattern to remove");
334
let conn = connect_db().expect("Could not connect to the database");
335
336
- if remove_crate_priority(&conn, pattern)
+ if let Some(priority) = remove_crate_priority(&conn, pattern)
337
.expect("Could not remove pattern's priority")
338
- .is_some()
339
{
340
- println!("Removed pattern");
+ println!("Removed pattern with priority {}", priority);
341
} else {
342
println!("Pattern did not exist and so was not removed");
343
}
0 commit comments