fix blocks_in_conditions clippy lint
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
8d42351e34
commit
ad1d272e2a
2 changed files with 13 additions and 10 deletions
|
@ -200,7 +200,7 @@ unused_extern_crates = "warn"
|
|||
unused_import_braces = "warn"
|
||||
# unused_lifetimes = "warn"
|
||||
unused_qualifications = "warn"
|
||||
unused_tuple_struct_fields = "warn"
|
||||
dead_code = "warn"
|
||||
|
||||
[workspace.lints.clippy]
|
||||
suspicious = "warn" # assume deny in practice
|
||||
|
@ -212,7 +212,7 @@ expl_impl_clone_on_copy = "warn"
|
|||
unnecessary_cast = "warn"
|
||||
cast_lossless = "warn"
|
||||
ptr_as_ptr = "warn"
|
||||
ref_to_mut = "warn"
|
||||
mut_mut = "warn"
|
||||
char_lit_as_u8 = "warn"
|
||||
dbg_macro = "warn"
|
||||
empty_structs_with_brackets = "warn"
|
||||
|
|
|
@ -631,7 +631,7 @@ impl Service {
|
|||
state_res::resolve(room_version_id, &fork_states, auth_chain_sets, |id| {
|
||||
let res = services().rooms.timeline.get_pdu(id);
|
||||
if let Err(e) = &res {
|
||||
error!("LOOK AT ME Failed to fetch event: {}", e);
|
||||
error!("Failed to fetch event: {}", e);
|
||||
}
|
||||
res.ok().flatten()
|
||||
});
|
||||
|
@ -975,13 +975,16 @@ impl Service {
|
|||
debug!("Resolving state");
|
||||
|
||||
let lock = services().globals.stateres_mutex.lock();
|
||||
let state = match state_res::resolve(room_version_id, &fork_states, auth_chain_sets, |id| {
|
||||
let state_resolve =
|
||||
state_res::resolve(room_version_id, &fork_states, auth_chain_sets, |id| {
|
||||
let res = services().rooms.timeline.get_pdu(id);
|
||||
if let Err(e) = &res {
|
||||
error!("LOOK AT ME Failed to fetch event: {}", e);
|
||||
error!("Failed to fetch event: {}", e);
|
||||
}
|
||||
res.ok().flatten()
|
||||
}) {
|
||||
});
|
||||
|
||||
let state = match state_resolve {
|
||||
Ok(new_state) => new_state,
|
||||
Err(e) => {
|
||||
error!("State resolution failed: {}", e);
|
||||
|
|
Loading…
Add table
Reference in a new issue