@@ -34,43 +34,43 @@ pub enum Error {
3434 #[ error( "Network Error: {0}" ) ]
3535 Network ( #[ from] reqwest:: Error ) ,
3636 /// HTTP method error.
37- #[ error( "{0}" ) ]
37+ #[ error( transparent ) ]
3838 HttpMethod ( #[ from] http:: method:: InvalidMethod ) ,
3939 /// Invalid HTTP header value.
4040 #[ cfg( feature = "reqwest-client" ) ]
4141 #[ cfg_attr( doc_cfg, doc( cfg( feature = "reqwest-client" ) ) ) ]
42- #[ error( "{0}" ) ]
42+ #[ error( transparent ) ]
4343 HttpHeaderValue ( #[ from] http:: header:: InvalidHeaderValue ) ,
4444 /// Invalid HTTP header value.
45- #[ error( "{0}" ) ]
45+ #[ error( transparent ) ]
4646 HttpHeader ( #[ from] http:: header:: InvalidHeaderName ) ,
4747 /// Failed to serialize header value as string.
48- #[ error( "failed to convert response header value to string" ) ]
49- HttpHeaderToString ( #[ from] http :: header :: ToStrError ) ,
48+ #[ error( transparent ) ]
49+ Utf8 ( #[ from] std :: string :: FromUtf8Error ) ,
5050 /// HTTP form to must be an object.
5151 #[ error( "http form must be an object" ) ]
5252 InvalidHttpForm ,
5353 /// Semver error.
54- #[ error( "{0}" ) ]
54+ #[ error( transparent ) ]
5555 Semver ( #[ from] semver:: Error ) ,
5656 /// JSON error.
57- #[ error( "{0}" ) ]
57+ #[ error( transparent ) ]
5858 Json ( #[ from] serde_json:: Error ) ,
5959 /// Bincode error.
60- #[ error( "{0}" ) ]
60+ #[ error( transparent ) ]
6161 Bincode ( #[ from] Box < bincode:: ErrorKind > ) ,
6262 /// IO error.
63- #[ error( "{0}" ) ]
63+ #[ error( transparent ) ]
6464 Io ( #[ from] std:: io:: Error ) ,
6565 /// Ignore error.
6666 #[ error( "failed to walkdir: {0}" ) ]
6767 Ignore ( #[ from] ignore:: Error ) ,
6868 /// ZIP error.
69- #[ error( "{0}" ) ]
69+ #[ error( transparent ) ]
7070 Zip ( #[ from] zip:: result:: ZipError ) ,
7171 /// Notification error.
7272 #[ cfg( notification_all) ]
73- #[ error( "{0}" ) ]
73+ #[ error( transparent ) ]
7474 Notification ( #[ from] notify_rust:: error:: Error ) ,
7575 /// failed to detect the current platform.
7676 #[ error( "failed to detect platform: {0}" ) ]
0 commit comments