Skip to content

Commit a35e64d

Browse files
committed
fix clippy and build errors
1 parent 7715888 commit a35e64d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

uefi/src/data_types/strs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl Display for FromSliceWithNulError {
3636
}
3737

3838
#[cfg(feature = "unstable")]
39-
impl core::error::Error for StrConversionError {}
39+
impl core::error::Error for FromSliceWithNulError {}
4040

4141
/// Error returned by [`CStr16::from_unaligned_slice`].
4242
#[derive(Clone, Copy, Debug, Eq, PartialEq)]

uefi/src/proto/driver/component_name.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ pub enum LanguageError {
241241
impl Display for LanguageError {
242242
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
243243
match self {
244-
Self::Ascii { index } => write!(f, "invalid character at index: {index}"),
244+
Self::Ascii { index } => write!(f, "invalid character at index: {}", index),
245245
}
246246
}
247247
}

0 commit comments

Comments
 (0)