use crate::TryDropStrategy;
#[cfg_attr(
feature = "derives",
derive(Debug, Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash, Default)
)]
pub struct NoOpDropStrategy;
impl TryDropStrategy for NoOpDropStrategy {
fn handle_error(&self, _error: crate::Error) {}
}
#[cfg(test)]
mod tests {
use super::*;
use crate::drop_strategies::PanicDropStrategy;
use crate::test_utils::{ErrorsOnDrop, Fallible};
#[test]
fn test_drop_strategy() {
let _errors =
ErrorsOnDrop::<Fallible, _>::given(NoOpDropStrategy, PanicDropStrategy::DEFAULT);
}
}