Moved CalcValue into action.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 2s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 2s
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
use crate::{
|
||||
document::field::Field,
|
||||
message::wrapper::CalcValue,
|
||||
action::{CalcValue, Field},
|
||||
name::NameType,
|
||||
};
|
||||
use std::collections::HashMap;
|
||||
@@ -35,14 +34,6 @@ impl RequestData {
|
||||
}
|
||||
}
|
||||
|
||||
fn get_all(&self) -> Vec<(NameType, Field)> {
|
||||
let mut output = Vec::new();
|
||||
for (key, value) in self.data.iter() {
|
||||
output.push((key.clone(), value.get(&Field::None)));
|
||||
}
|
||||
output
|
||||
}
|
||||
|
||||
pub fn iter(&self) -> impl Iterator<Item = (&NameType, &CalcValue)> {
|
||||
self.data.iter()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user