coconut-svsm / svsm

COCONUT-SVSM
MIT License
122 stars 43 forks source link

elf/tests: remove unnecessary qualification #284

Closed 00xc closed 8 months ago

00xc commented 9 months ago

Fix the following clippy warning on the nightly toolchain:

error: unnecessary qualification
    --> kernel/src/elf/mod.rs:2539:29
     |
2539 |         assert_eq!(res, Err(crate::elf::ElfError::InvalidPhdrSize));
     |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
     = note: requested on the command line with `-D unused-qualifications`
help: remove the unnecessary path segments
     |
2539 -         assert_eq!(res, Err(crate::elf::ElfError::InvalidPhdrSize));
2539 +         assert_eq!(res, Err(ElfError::InvalidPhdrSize));
     |
00xc commented 9 months ago

For context these need to be fixed for Miri to properly run, as it uses the nightly toolchain and we cause a build error on some warnings like this one.