Fix warnings

This commit is contained in:
Jonas Platte 2021-04-12 13:22:40 +02:00 committed by Ryan Leckey
parent bd06836fba
commit 81ae756e86
4 changed files with 7 additions and 7 deletions

View file

@ -230,7 +230,9 @@ where
#[cfg(all(not(feature = "_rt-async-std"), feature = "_tls-native-tls"))]
MaybeTlsStream::Tls(s) => s.get_ref().get_ref().get_ref(),
MaybeTlsStream::Upgrading => panic!(io::Error::from(io::ErrorKind::ConnectionAborted)),
MaybeTlsStream::Upgrading => {
panic!("{}", io::Error::from(io::ErrorKind::ConnectionAborted))
}
}
}
}
@ -252,7 +254,9 @@ where
#[cfg(all(not(feature = "_rt-async-std"), feature = "_tls-native-tls"))]
MaybeTlsStream::Tls(s) => s.get_mut().get_mut().get_mut(),
MaybeTlsStream::Upgrading => panic!(io::Error::from(io::ErrorKind::ConnectionAborted)),
MaybeTlsStream::Upgrading => {
panic!("{}", io::Error::from(io::ErrorKind::ConnectionAborted))
}
}
}
}

View file

@ -1,5 +1,3 @@
use std::str::FromStr;
#[derive(Debug, Clone)]
pub enum SqliteAutoVacuum {
None,

View file

@ -1,5 +1,3 @@
use std::str::FromStr;
#[derive(Debug, Clone)]
pub enum SqliteLockingMode {
Normal,

View file

@ -75,7 +75,7 @@ mod tokio_runtime {
where
F: FnOnce() -> R,
{
RUNTIME.enter();
let _rt = RUNTIME.enter();
f()
}
}