mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 14:34:19 +00:00
Fix warnings
This commit is contained in:
parent
bd06836fba
commit
81ae756e86
4 changed files with 7 additions and 7 deletions
|
@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
use std::str::FromStr;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum SqliteAutoVacuum {
|
||||
None,
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
use std::str::FromStr;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum SqliteLockingMode {
|
||||
Normal,
|
||||
|
|
|
@ -75,7 +75,7 @@ mod tokio_runtime {
|
|||
where
|
||||
F: FnOnce() -> R,
|
||||
{
|
||||
RUNTIME.enter();
|
||||
let _rt = RUNTIME.enter();
|
||||
f()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue