Apply clippy::has_significant_drop.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -7,6 +7,7 @@ pub struct State {
|
|||||||
services: *const Services,
|
services: *const Services,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[clippy::has_significant_drop]
|
||||||
pub struct Guard {
|
pub struct Guard {
|
||||||
services: Arc<Services>,
|
services: Arc<Services>,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ use std::sync::Arc;
|
|||||||
use super::Capture;
|
use super::Capture;
|
||||||
|
|
||||||
/// Capture instance scope guard.
|
/// Capture instance scope guard.
|
||||||
|
#[clippy::has_significant_drop]
|
||||||
pub struct Guard {
|
pub struct Guard {
|
||||||
pub(super) capture: Arc<Capture>,
|
pub(super) capture: Arc<Capture>,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ pub struct MutexMap<Key, Val> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
#[clippy::has_significant_drop]
|
||||||
pub struct Guard<Key, Val> {
|
pub struct Guard<Key, Val> {
|
||||||
map: Map<Key, Val>,
|
map: Map<Key, Val>,
|
||||||
val: Omg<Val>,
|
val: Omg<Val>,
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ pub struct State<F: Fn(u64) -> Result + Sync> {
|
|||||||
release: F,
|
release: F,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[clippy::has_significant_drop]
|
||||||
pub struct Permit<F: Fn(u64) -> Result + Sync> {
|
pub struct Permit<F: Fn(u64) -> Result + Sync> {
|
||||||
/// Link back to the shared-state.
|
/// Link back to the shared-state.
|
||||||
state: Arc<Counter<F>>,
|
state: Arc<Counter<F>>,
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ use std::sync::Arc;
|
|||||||
|
|
||||||
use crate::{Database, Engine};
|
use crate::{Database, Engine};
|
||||||
|
|
||||||
|
#[clippy::has_significant_drop]
|
||||||
pub struct Cork {
|
pub struct Cork {
|
||||||
engine: Arc<Engine>,
|
engine: Arc<Engine>,
|
||||||
flush: bool,
|
flush: bool,
|
||||||
|
|||||||
Reference in New Issue
Block a user