add clippy::use_self for cleanliness
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
clippy::dbg_macro,
|
||||
clippy::print_stdout,
|
||||
clippy::unimplemented,
|
||||
clippy::use_self,
|
||||
missing_copy_implementations,
|
||||
missing_docs,
|
||||
non_snake_case,
|
||||
|
@@ -96,7 +96,7 @@ impl Connect for AsyncStdTcpStream {
|
||||
None => async_std::net::TcpStream::connect(addr).await?,
|
||||
};
|
||||
stream.set_nodelay(true)?;
|
||||
Ok(AsyncStdTcpStream(stream))
|
||||
Ok(Self(stream))
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -49,7 +49,7 @@ pub struct AsyncStdRuntime;
|
||||
|
||||
impl Executor for AsyncStdRuntime {
|
||||
fn new() -> Self {
|
||||
AsyncStdRuntime {}
|
||||
Self {}
|
||||
}
|
||||
|
||||
fn block_on<F: Future>(&mut self, future: F) -> F::Output {
|
||||
|
Reference in New Issue
Block a user