chore: restore clippy quality gate
This commit is contained in:
parent
e92d01acb8
commit
cad4bc0e74
4 changed files with 71 additions and 72 deletions
|
|
@ -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 } => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue