Altered populate function.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
This commit is contained in:
@@ -15,7 +15,7 @@ pub fn setup_range(count: usize) -> (TestMoreThanText, TestDocument) {
|
||||
let holder: i128 = i.try_into().unwrap();
|
||||
data.push(vec![holder]);
|
||||
}
|
||||
test_doc.populate_multiple(&mut mtt, data);
|
||||
test_doc.populate_multiple(mtt.clone(), data);
|
||||
(test_env, test_doc)
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ impl TestDocument {
|
||||
self.field_names[position].clone()
|
||||
}
|
||||
|
||||
pub fn populate<F>(&self, mtt: &mut MoreThanText, data: Vec<F>)
|
||||
pub fn populate<F>(&self, mut mtt: MoreThanText, data: Vec<F>)
|
||||
where
|
||||
F: Into<Field> + Clone,
|
||||
{
|
||||
@@ -63,7 +63,7 @@ impl TestDocument {
|
||||
self.populate_multiple(mtt, wrapper);
|
||||
}
|
||||
|
||||
pub fn populate_multiple<F>(&self, mtt: &mut MoreThanText, data: Vec<Vec<F>>)
|
||||
pub fn populate_multiple<F>(&self, mut mtt: MoreThanText, data: Vec<Vec<F>>)
|
||||
where
|
||||
F: Into<Field> + Clone,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user