Skip to content

Commit 0df21a8

Browse files
committed
Remove a few un-needed qualifiers for consistency
Some types are referenced inconsistently, so removing qualifiers to keep them uniform
1 parent 5d406a4 commit 0df21a8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

embedded-hal/src/spi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ pub const MODE_3: Mode = Mode {
221221
};
222222

223223
/// SPI error.
224-
pub trait Error: core::fmt::Debug {
224+
pub trait Error: Debug {
225225
/// Convert error to a generic SPI error kind.
226226
///
227227
/// By using this method, SPI errors freely defined by HAL implementations

embedded-io/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ impl From<std::io::ErrorKind> for ErrorKind {
175175
///
176176
/// This trait allows generic code to do limited inspecting of errors,
177177
/// to react differently to different kinds.
178-
pub trait Error: core::fmt::Debug {
178+
pub trait Error: fmt::Debug {
179179
/// Get the kind of this error.
180180
fn kind(&self) -> ErrorKind;
181181
}
@@ -194,8 +194,8 @@ impl Error for ErrorKind {
194194

195195
#[cfg(feature = "std")]
196196
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
197-
impl crate::Error for std::io::Error {
198-
fn kind(&self) -> crate::ErrorKind {
197+
impl Error for std::io::Error {
198+
fn kind(&self) -> ErrorKind {
199199
self.kind().into()
200200
}
201201
}

0 commit comments

Comments
 (0)