Apply clippy::has_significant_drop.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2026-03-09 22:40:14 +00:00
parent e70bc5d665
commit beb9fa0ecd
5 changed files with 5 additions and 0 deletions

View File

@@ -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>,
} }

View File

@@ -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>,
} }

View File

@@ -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>,

View File

@@ -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>>,

View File

@@ -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,