sync: fix import style for std::error::Error (#5818)

This commit is contained in:
wathen
2023-07-03 08:11:00 +00:00
committed by GitHub
parent 918cf08a5f
commit d8847cf891
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ impl<T> fmt::Display for SendError<T> {
}
}
impl<T> std::error::Error for SendError<T> {}
impl<T> Error for SendError<T> {}
// ===== TrySendError =====
+3 -2
View File
@@ -205,6 +205,7 @@ impl<T: fmt::Debug> fmt::Debug for Shared<T> {
pub mod error {
//! Watch error types.
use std::error::Error;
use std::fmt;
/// Error produced when sending a value fails.
@@ -225,7 +226,7 @@ pub mod error {
}
}
impl<T> std::error::Error for SendError<T> {}
impl<T> Error for SendError<T> {}
/// Error produced when receiving a change notification.
#[derive(Debug, Clone)]
@@ -239,7 +240,7 @@ pub mod error {
}
}
impl std::error::Error for RecvError {}
impl Error for RecvError {}
}
mod big_notify {