Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Danil-Grigorev <[email protected]>
  • Loading branch information
Danil-Grigorev committed Dec 28, 2024
1 parent 5343bdc commit d4ebe7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions kube-runtime/src/reflector/object_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,12 @@ impl<K: Lookup> From<ObjectRef<K>> for ObjectReference {
dyntype: dt,
name,
namespace,
extra: Extra {
resource_version,
uid,
..
},
extra:
Extra {
resource_version,
uid,
..
},
} = val;
ObjectReference {
api_version: Some(K::api_version(&dt).into_owned()),
Expand Down
2 changes: 1 addition & 1 deletion kube-runtime/src/reflector/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ where
store.remove(&key);
if self.dispatcher.is_some() {
// Re-insert the entry with updated key, as insert on its own doesnt modify the key
key.extra.remaining_lookups = self.dispatcher.as_ref().map(|d| d.subscribers());
key.extra.remaining_lookups = self.dispatcher.as_ref().map(Dispatcher::subscribers);
store.insert(key, Arc::new(obj.clone()));
}
}
Expand Down

0 comments on commit d4ebe7b

Please sign in to comment.