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 baa065c commit b5e5a66Copy full SHA for b5e5a66
src/notifications.rs
@@ -140,13 +140,10 @@ impl Notification<'_> {
140
NoCanonicalPath(_) => NotificationLevel::Warn,
141
Error(_) => NotificationLevel::Error,
142
CreatingRoot(_) | CreatingFile(_) => NotificationLevel::Debug,
143
- FileDeletion(_, result) | DirectoryDeletion(_, result) => {
144
- if result.is_ok() {
145
- NotificationLevel::Debug
146
- } else {
147
- NotificationLevel::Warn
148
- }
149
+ FileDeletion(_, result) | DirectoryDeletion(_, result) => match result {
+ Ok(_) => NotificationLevel::Debug,
+ Err(_) => NotificationLevel::Warn,
+ },
150
ToolchainDirectory(_)
151
| LookingForToolchain(_)
152
| InstallingToolchain(_)
0 commit comments