@@ -34,43 +34,43 @@ pub enum Error {
34
34
#[ error( "Network Error: {0}" ) ]
35
35
Network ( #[ from] reqwest:: Error ) ,
36
36
/// HTTP method error.
37
- #[ error( "{0}" ) ]
37
+ #[ error( transparent ) ]
38
38
HttpMethod ( #[ from] http:: method:: InvalidMethod ) ,
39
39
/// Invalid HTTP header value.
40
40
#[ cfg( feature = "reqwest-client" ) ]
41
41
#[ cfg_attr( doc_cfg, doc( cfg( feature = "reqwest-client" ) ) ) ]
42
- #[ error( "{0}" ) ]
42
+ #[ error( transparent ) ]
43
43
HttpHeaderValue ( #[ from] http:: header:: InvalidHeaderValue ) ,
44
44
/// Invalid HTTP header value.
45
- #[ error( "{0}" ) ]
45
+ #[ error( transparent ) ]
46
46
HttpHeader ( #[ from] http:: header:: InvalidHeaderName ) ,
47
47
/// 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 ) ,
50
50
/// HTTP form to must be an object.
51
51
#[ error( "http form must be an object" ) ]
52
52
InvalidHttpForm ,
53
53
/// Semver error.
54
- #[ error( "{0}" ) ]
54
+ #[ error( transparent ) ]
55
55
Semver ( #[ from] semver:: Error ) ,
56
56
/// JSON error.
57
- #[ error( "{0}" ) ]
57
+ #[ error( transparent ) ]
58
58
Json ( #[ from] serde_json:: Error ) ,
59
59
/// Bincode error.
60
- #[ error( "{0}" ) ]
60
+ #[ error( transparent ) ]
61
61
Bincode ( #[ from] Box < bincode:: ErrorKind > ) ,
62
62
/// IO error.
63
- #[ error( "{0}" ) ]
63
+ #[ error( transparent ) ]
64
64
Io ( #[ from] std:: io:: Error ) ,
65
65
/// Ignore error.
66
66
#[ error( "failed to walkdir: {0}" ) ]
67
67
Ignore ( #[ from] ignore:: Error ) ,
68
68
/// ZIP error.
69
- #[ error( "{0}" ) ]
69
+ #[ error( transparent ) ]
70
70
Zip ( #[ from] zip:: result:: ZipError ) ,
71
71
/// Notification error.
72
72
#[ cfg( notification_all) ]
73
- #[ error( "{0}" ) ]
73
+ #[ error( transparent ) ]
74
74
Notification ( #[ from] notify_rust:: error:: Error ) ,
75
75
/// failed to detect the current platform.
76
76
#[ error( "failed to detect platform: {0}" ) ]
0 commit comments