File tree 16 files changed +6
-26
lines changed
16 files changed +6
-26
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Changed
4
4
- MSRV increased to 1.81.
5
+ - ` core::error::Error ` impls are no longer gated by the ` unstable ` feature.
5
6
6
7
7
8
# uefi - 0.33.0 (2024-10-23)
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ impl Display for CharConversionError {
15
15
}
16
16
}
17
17
18
- #[ cfg( feature = "unstable" ) ]
19
18
impl core:: error:: Error for CharConversionError { }
20
19
21
20
/// A Latin-1 character
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ impl Display for FromStrError {
32
32
}
33
33
}
34
34
35
- #[ cfg( feature = "unstable" ) ]
36
35
impl core:: error:: Error for FromStrError { }
37
36
38
37
/// An owned UCS-2 null-terminated string.
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ impl Display for FromSliceUntilNulError {
30
30
}
31
31
}
32
32
33
- #[ cfg( feature = "unstable" ) ]
34
33
impl core:: error:: Error for FromSliceUntilNulError { }
35
34
36
35
/// Error converting from a slice (which cannot contain interior nuls) to a
@@ -57,7 +56,6 @@ impl Display for FromSliceWithNulError {
57
56
}
58
57
}
59
58
60
- #[ cfg( feature = "unstable" ) ]
61
59
impl core:: error:: Error for FromSliceWithNulError { }
62
60
63
61
/// Error returned by [`CStr16::from_unaligned_slice`].
@@ -88,7 +86,6 @@ impl Display for UnalignedCStr16Error {
88
86
}
89
87
}
90
88
91
- #[ cfg( feature = "unstable" ) ]
92
89
impl core:: error:: Error for UnalignedCStr16Error { }
93
90
94
91
/// Error returned by [`CStr16::from_str_with_buf`].
@@ -115,7 +112,6 @@ impl Display for FromStrWithBufError {
115
112
}
116
113
}
117
114
118
- #[ cfg( feature = "unstable" ) ]
119
115
impl core:: error:: Error for FromStrWithBufError { }
120
116
121
117
/// A null-terminated Latin-1 string.
Original file line number Diff line number Diff line change @@ -94,18 +94,16 @@ impl From<PathError> for Error {
94
94
}
95
95
}
96
96
97
- #[ cfg( feature = "unstable" ) ]
98
97
impl core:: error:: Error for Error {
99
98
fn source ( & self ) -> Option < & ( dyn core:: error:: Error + ' static ) > {
100
99
match self {
101
- Error :: Io ( err) => Some ( err) ,
102
- Error :: Path ( err) => Some ( err) ,
103
- Error :: Utf8Encoding ( err) => Some ( err) ,
100
+ Self :: Io ( err) => Some ( err) ,
101
+ Self :: Path ( err) => Some ( err) ,
102
+ Self :: Utf8Encoding ( err) => Some ( err) ,
104
103
}
105
104
}
106
105
}
107
106
108
- #[ cfg( feature = "unstable" ) ]
109
107
impl core:: error:: Error for IoError {
110
108
fn source ( & self ) -> Option < & ( dyn core:: error:: Error + ' static ) > {
111
109
Some ( & self . uefi_error )
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ impl Display for PathError {
38
38
}
39
39
}
40
40
41
- #[ cfg( feature = "unstable" ) ]
42
41
impl core:: error:: Error for PathError { }
43
42
44
43
/// Validates a path for the needs of the [`fs`] module.
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ impl Display for MemoryMapError {
25
25
}
26
26
}
27
27
28
- #[ cfg( feature = "unstable" ) ]
29
28
impl core:: error:: Error for MemoryMapError { }
30
29
31
30
/// Implementation of [`MemoryMap`] for the given buffer.
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ impl Display for BootPolicyError {
20
20
}
21
21
}
22
22
23
- #[ cfg( feature = "unstable" ) ]
24
23
impl core:: error:: Error for BootPolicyError { }
25
24
26
25
/// The UEFI boot policy is a property that influences the behaviour of
Original file line number Diff line number Diff line change @@ -189,7 +189,6 @@ impl Display for BuildError {
189
189
}
190
190
}
191
191
192
- #[ cfg( feature = "unstable" ) ]
193
192
impl core:: error:: Error for BuildError { }
194
193
195
194
/// Trait for types that can be used to build a node via
Original file line number Diff line number Diff line change @@ -704,12 +704,11 @@ impl Display for DevicePathToTextError {
704
704
}
705
705
}
706
706
707
- #[ cfg( feature = "unstable" ) ]
708
707
impl core:: error:: Error for DevicePathToTextError {
709
708
fn source ( & self ) -> Option < & ( dyn core:: error:: Error + ' static ) > {
710
709
match self {
711
- DevicePathToTextError :: CantLocateHandleBuffer ( e) => Some ( e) ,
712
- DevicePathToTextError :: CantOpenProtocol ( e) => Some ( e) ,
710
+ Self :: CantLocateHandleBuffer ( e) => Some ( e) ,
711
+ Self :: CantOpenProtocol ( e) => Some ( e) ,
713
712
_ => None ,
714
713
}
715
714
}
Original file line number Diff line number Diff line change @@ -248,7 +248,6 @@ impl Display for LanguageError {
248
248
}
249
249
}
250
250
251
- #[ cfg( feature = "unstable" ) ]
252
251
impl core:: error:: Error for LanguageError { }
253
252
254
253
#[ derive( Debug , PartialEq ) ]
Original file line number Diff line number Diff line change @@ -137,7 +137,6 @@ impl Display for FileInfoCreationError {
137
137
}
138
138
}
139
139
140
- #[ cfg( feature = "unstable" ) ]
141
140
impl core:: error:: Error for FileInfoCreationError { }
142
141
143
142
/// Generic file information
Original file line number Diff line number Diff line change @@ -1247,7 +1247,6 @@ impl Display for IcmpError {
1247
1247
}
1248
1248
}
1249
1249
1250
- #[ cfg( feature = "unstable" ) ]
1251
1250
impl core:: error:: Error for IcmpError { }
1252
1251
1253
1252
/// Corresponds to the anonymous union inside
@@ -1294,7 +1293,6 @@ impl Display for TftpError {
1294
1293
}
1295
1294
}
1296
1295
1297
- #[ cfg( feature = "unstable" ) ]
1298
1296
impl core:: error:: Error for TftpError { }
1299
1297
1300
1298
/// Returned by [`BaseCode::tftp_read_dir`].
@@ -1337,5 +1335,4 @@ impl Display for ReadDirParseError {
1337
1335
}
1338
1336
}
1339
1337
1340
- #[ cfg( feature = "unstable" ) ]
1341
1338
impl core:: error:: Error for ReadDirParseError { }
Original file line number Diff line number Diff line change @@ -171,5 +171,4 @@ impl Display for StrConversionError {
171
171
}
172
172
}
173
173
174
- #[ cfg( feature = "unstable" ) ]
175
174
impl core:: error:: Error for StrConversionError { }
Original file line number Diff line number Diff line change @@ -68,5 +68,4 @@ impl<Data: Debug> Error<Data> {
68
68
}
69
69
}
70
70
71
- #[ cfg( feature = "unstable" ) ]
72
71
impl < Data : Debug > core:: error:: Error for Error < Data > { }
Original file line number Diff line number Diff line change @@ -605,7 +605,6 @@ pub struct TimeError {
605
605
pub daylight : bool ,
606
606
}
607
607
608
- #[ cfg( feature = "unstable" ) ]
609
608
impl core:: error:: Error for TimeError { }
610
609
611
610
impl Display for TimeError {
You can’t perform that action at this time.
0 commit comments