More format

For some reason my cargo disagrees with the use line
This commit is contained in:
Tonkku
2024-10-08 11:17:18 +03:00
committed by Quentin Gliech
parent b09e2faaaa
commit 7a750e6dab
2 changed files with 3 additions and 4 deletions

View File

@@ -287,10 +287,11 @@ impl AuthorizationGrant {
#[cfg(test)]
mod tests {
use super::*;
use mas_matrix::MockHomeserverConnection;
use rand::thread_rng;
use super::*;
fn get_homeserver() -> BoxHomeserverConnection {
Box::new(MockHomeserverConnection::new("example.com"))
}

View File

@@ -173,9 +173,7 @@ impl<K: FormField> FormState<K> {
/// Checks if a field contains a value
pub fn has_value(&self, field: K) -> bool {
self.fields
.get(&field)
.is_some_and(|f| f.value.is_some())
self.fields.get(&field).is_some_and(|f| f.value.is_some())
}
/// Returns `true` if the form has no error attached to it