mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-24 00:00:11 +02:00
sync: fix import style for std::error::Error (#5818)
This commit is contained in:
@@ -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 =====
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user