update http-ui

This commit is contained in:
Tamo 2021-11-04 15:52:22 +01:00
parent a58bc5bebb
commit 07a5ffb04c
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
2 changed files with 21 additions and 9 deletions

View file

@ -35,6 +35,12 @@ fn parse<T: FromStr>(tok: &Token) -> Result<T> {
}
}
impl<'a> From<Filter<'a>> for FilterCondition<'a> {
fn from(f: Filter<'a>) -> Self {
f.condition
}
}
impl<'a> Filter<'a> {
pub fn from_array<I, J>(array: I) -> Result<Option<Self>>
where