@@ -50,7 +50,6 @@ pub enum Notification<'a> {
5050 DownloadFinished ( Option < & ' a str > ) ,
5151 /// Download has failed.
5252 DownloadFailed ( & ' a str ) ,
53- NoCanonicalPath ( & ' a Path ) ,
5453 ResumingPartialDownload ,
5554 /// This would make more sense as a crate::notifications::Notification
5655 /// member, but the notification callback is already narrowed to
@@ -135,7 +134,6 @@ impl Notification<'_> {
135134 | UsingCurl
136135 | UsingReqwest => NotificationLevel :: Debug ,
137136 RenameInUse ( _, _) => NotificationLevel :: Info ,
138- NoCanonicalPath ( _) => NotificationLevel :: Warn ,
139137 Error ( _) => NotificationLevel :: Error ,
140138 CreatingRoot ( _) | CreatingFile ( _) => NotificationLevel :: Debug ,
141139 FileDeletion ( _, result) | DirectoryDeletion ( _, result) => match result {
@@ -281,7 +279,6 @@ impl Display for Notification<'_> {
281279 DownloadDataReceived ( data, _) => write ! ( f, "received some data of size {}" , data. len( ) ) ,
282280 DownloadFinished ( _) => write ! ( f, "download finished" ) ,
283281 DownloadFailed ( _) => write ! ( f, "download failed" ) ,
284- NoCanonicalPath ( path) => write ! ( f, "could not canonicalize path: '{}'" , path. display( ) ) ,
285282 ResumingPartialDownload => write ! ( f, "resuming partial download" ) ,
286283 UsingCurl => write ! ( f, "downloading with curl" ) ,
287284 UsingReqwest => write ! ( f, "downloading with reqwest" ) ,
0 commit comments