chore: restore clippy quality gate

This commit is contained in:
Eric Wendland 2026-07-05 17:24:03 +02:00
commit cad4bc0e74
4 changed files with 71 additions and 72 deletions

View file

@ -491,11 +491,11 @@ pub fn reduce_keychain_ops(ops: &[KeychainOp]) -> KeychainView {
revoked_devices.insert(device.clone());
}
KeychainOpKind::DeviceKeyAdd { device, key } => {
if let Some(record) = devices.get_mut(device) {
if !record.keys.contains(key) {
record.keys.push(key.clone());
record.keys.sort();
}
if let Some(record) = devices.get_mut(device)
&& !record.keys.contains(key)
{
record.keys.push(key.clone());
record.keys.sort();
}
}
KeychainOpKind::DeviceKeyRevoke { device, key } => {
@ -521,11 +521,11 @@ pub fn reduce_keychain_ops(ops: &[KeychainOp]) -> KeychainView {
revoked_nodes.insert(node.clone());
}
KeychainOpKind::NodeEndpointAdd { node, endpoint } => {
if let Some(record) = nodes.get_mut(node) {
if !record.endpoints.contains(endpoint) {
record.endpoints.push(endpoint.clone());
record.endpoints.sort();
}
if let Some(record) = nodes.get_mut(node)
&& !record.endpoints.contains(endpoint)
{
record.endpoints.push(endpoint.clone());
record.endpoints.sort();
}
}
KeychainOpKind::NodeEndpointRevoke { node, endpoint } => {