Skip to content

Conversation

jeckersb
Copy link
Collaborator

Signed-off-by: John Eckersberg jeckersb@redhat.com

@jeckersb
Copy link
Collaborator Author

/me hopes to not break everything this time

lib/src/cli.rs Outdated
tracing::debug!("fetched: {fetched_digest}");
let staged_unchanged = staged_digest
.map(|d| d == fetched_digest)
.map(|d| d == *fetched_digest)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor style nit I think coercing to a reference like &d == fetched_digest is perhaps more idomatic?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I suppose so. That's more my historic C-like brain wanting to dereference two pointers to compare the values instead of comparing the actual pointers. But rust already does the dereference for you (I had to go look up how that actually works!).

Signed-off-by: John Eckersberg <jeckersb@redhat.com>
@cgwalters cgwalters merged commit 34e104d into bootc-dev:main Sep 24, 2024
32 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants