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

svsm: remove default-test feature & fix leftover nightly clippy warning #342

Merged
merged 2 commits into from
May 14, 2024

Conversation

00xc
Copy link
Member

@00xc 00xc commented May 13, 2024

  • Remove the default-test feature: it is not really needed, as we can detect if we're building tests via the "test" cfg.
  • Remove a nightly clippy warning in the gdbstub code.

Fix a leftover nightly clippy warning:

error: this argument is a mutable reference, but not used mutably
   --> kernel/src/debug/gdbstub.rs:316:17
    |
316 |         fn read(&mut self) -> Result<u8, &'static str> {
    |                 ^^^^^^^^^ help: consider changing to: `&self`
    |
    = note: this is cfg-gated and may require further changes
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
    = note: `-D clippy::needless-pass-by-ref-mut` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::needless_pass_by_ref_mut)]`

Signed-off-by: Carlos López <carlos.lopez@suse.com>
Copy link
Member

@cclaudio cclaudio left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks.

Makefile Outdated Show resolved Hide resolved
This feature is not really needed, as we can detect if we're building
tests via the "test" cfg.

Signed-off-by: Carlos López <carlos.lopez@suse.com>
@joergroedel joergroedel merged commit 1724fb1 into coconut-svsm:main May 14, 2024
3 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.

4 participants