Skip to content

Commit

Permalink
minor feedback points
Browse files Browse the repository at this point in the history
Signed-off-by: clux <[email protected]>
  • Loading branch information
clux committed Dec 12, 2022
1 parent fc2abd4 commit 38458e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kube-runtime/src/reflector/object_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl ObjectRef {
}

#[must_use]
pub fn with_owner(mut self, owner: &OwnerReference) -> Self {
pub fn with_uid(mut self, owner: &OwnerReference) -> Self {
self.extra.uid = Some(owner.uid.clone());
self
}
Expand Down Expand Up @@ -160,7 +160,7 @@ impl Display for ObjectRef {
if let Some(tm) = &self.types {
write!(f, "{}.{}/{}", tm.kind, tm.api_version, self.name)?;
} else {
write!(f, "{}", self.name)?;
write!(f, "unknown/{}", self.name)?;
}
if let Some(namespace) = &self.namespace {
write!(f, ".{namespace}")?;
Expand Down

0 comments on commit 38458e0

Please sign in to comment.