chore(github): use codespell to inspect and correct spelling issues (#7775)

Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Delweng
2024-04-24 05:32:59 +08:00
committed by GitHub
parent 665e67ec7c
commit 7a593882e1
28 changed files with 55 additions and 34 deletions

View File

@ -136,7 +136,7 @@ where
T::Key: std::hash::Hash + Arbitrary,
T::Value: Arbitrary,
{
let strat = proptest::collection::vec(
let strategy = proptest::collection::vec(
any_with::<TableRow<T>>((
<T::Key as Arbitrary>::Parameters::default(),
<T::Value as Arbitrary>::Parameters::default(),
@ -147,8 +147,8 @@ where
.boxed();
let mut runner = TestRunner::new(ProptestConfig::default());
let mut preload = strat.new_tree(&mut runner).unwrap().current();
let mut input = strat.new_tree(&mut runner).unwrap().current();
let mut preload = strategy.new_tree(&mut runner).unwrap().current();
let mut input = strategy.new_tree(&mut runner).unwrap().current();
let mut unique_keys = HashSet::new();
preload.retain(|(k, _)| unique_keys.insert(k.clone()));

View File

@ -23,7 +23,7 @@ mod sealed {
use crate::{database::Database, mock::DatabaseMock, DatabaseEnv};
use std::sync::Arc;
/// Sealed trait to limit the implementors of the Database trait.
/// Sealed trait to limit the implementers of the Database trait.
pub trait Sealed: Sized {}
impl<DB: Database> Sealed for &DB {}