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