Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump ostree-ext to 0.15.1 and use proper digests where possible #804

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

jeckersb
Copy link
Contributor

Signed-off-by: John Eckersberg [email protected]

@jeckersb
Copy link
Contributor Author

/me hopes to not break everything this time

lib/src/cli.rs Outdated Show resolved Hide resolved
lib/src/cli.rs Outdated
tracing::debug!("staged: {staged_digest:?}");
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
Contributor 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!).

@cgwalters cgwalters merged commit 34e104d into containers: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