Skip to content

Conversation

@phip1611
Copy link
Member

@phip1611 phip1611 commented Nov 25, 2025

Continuing the work from f02745a.

Unfortunately, there is no clippy lint for this yet.

Part of #7489

@phip1611 phip1611 requested a review from a team as a code owner November 25, 2025 12:17
@phip1611 phip1611 changed the title vmm: code cleanup vmm: small code cleanup Nov 25, 2025
@phip1611 phip1611 changed the title vmm: small code cleanup vmm: small code cleanup (map_err -> inspect_err) Nov 25, 2025
@phip1611 phip1611 changed the title vmm: small code cleanup (map_err -> inspect_err) vmm: small code cleanups Nov 25, 2025
apply_filter(&seccomp_filter)
.map_err(Error::ApplySeccompFilter)
.map_err(|e| {
.inspect_err(|e| {
Copy link
Member

Choose a reason for hiding this comment

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

Cool - didn't know about this. Could you elaborate more in your commit message what you're doing here.

Copy link
Member Author

Choose a reason for hiding this comment

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

done.

phip1611 and others added 3 commits November 25, 2025 15:30
This is continuing the work from [0]. Some places in CHV
"misuse" Result::map_err for side-effects. inspect_err is
a better suited alternative for exactly that use-case.

Unfortunately, there is no clippy lint for this yet.

[0] f02745a

Signed-off-by: Philipp Schuster <[email protected]>
On-behalf-of: SAP [email protected]
Signed-off-by: Philipp Schuster <[email protected]>
On-behalf-of: SAP [email protected]
On-behalf-of: SAP [email protected]
Signed-off-by: Julian Stecklina <[email protected]>
@phip1611 phip1611 force-pushed the upstream-inspect-err branch from 8c65c4c to 800f295 Compare November 25, 2025 14:30
@rbradford rbradford added this pull request to the merge queue Nov 25, 2025
Merged via the queue into cloud-hypervisor:main with commit 8c50450 Nov 25, 2025
41 of 43 checks passed
@phip1611 phip1611 deleted the upstream-inspect-err branch November 25, 2025 16:57
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.

3 participants