mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-25 10:31:37 +08:00
Ignore mutex_atomic
clippy lint
> This lint cannot detect if the mutex is actually used for waiting before a critical section.
This commit is contained in:
parent
e880987fa3
commit
22bdd80b92
@ -37,6 +37,7 @@ pub struct InnerConnection {
|
|||||||
|
|
||||||
impl InnerConnection {
|
impl InnerConnection {
|
||||||
#[cfg(not(feature = "hooks"))]
|
#[cfg(not(feature = "hooks"))]
|
||||||
|
#[allow(clippy::mutex_atomic)]
|
||||||
pub fn new(db: *mut ffi::sqlite3, owned: bool) -> InnerConnection {
|
pub fn new(db: *mut ffi::sqlite3, owned: bool) -> InnerConnection {
|
||||||
InnerConnection {
|
InnerConnection {
|
||||||
db,
|
db,
|
||||||
@ -46,6 +47,7 @@ impl InnerConnection {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "hooks")]
|
#[cfg(feature = "hooks")]
|
||||||
|
#[allow(clippy::mutex_atomic)]
|
||||||
pub fn new(db: *mut ffi::sqlite3, owned: bool) -> InnerConnection {
|
pub fn new(db: *mut ffi::sqlite3, owned: bool) -> InnerConnection {
|
||||||
InnerConnection {
|
InnerConnection {
|
||||||
db,
|
db,
|
||||||
@ -123,6 +125,7 @@ impl InnerConnection {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::mutex_atomic)]
|
||||||
pub fn close(&mut self) -> Result<()> {
|
pub fn close(&mut self) -> Result<()> {
|
||||||
if self.db.is_null() {
|
if self.db.is_null() {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
|
@ -17,6 +17,7 @@ struct UnlockNotification {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "unlock_notify")]
|
#[cfg(feature = "unlock_notify")]
|
||||||
|
#[allow(clippy::mutex_atomic)]
|
||||||
impl UnlockNotification {
|
impl UnlockNotification {
|
||||||
fn new() -> UnlockNotification {
|
fn new() -> UnlockNotification {
|
||||||
UnlockNotification {
|
UnlockNotification {
|
||||||
|
Loading…
Reference in New Issue
Block a user