forked from rust-vmm/acpi_tables
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
acpi_tables: Fix clippy warnings related to no_std and prelude imports
See - rust-lang/rust#121362 the recommendation for how for no_std libraries has changed. To avoid warnings around unncessary imports (due to the prelude when compiling tests) make the tests also no_std and explicitly import the require test dependencies. Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
- Loading branch information
Showing
11 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,6 +62,7 @@ aml_as_bytes!(BERT); | |
|
||
#[cfg(test)] | ||
mod tests { | ||
use alloc::vec::Vec; | ||
use super::*; | ||
|
||
#[test] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
// | ||
|
||
#![crate_type = "staticlib"] | ||
#![cfg_attr(not(test), no_std)] | ||
#![no_std] | ||
|
||
//! ACPI table generation. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -167,6 +167,7 @@ impl SerialPortInfo { | |
|
||
#[cfg(test)] | ||
mod tests { | ||
use alloc::vec::Vec; | ||
use super::*; | ||
|
||
#[test] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -304,6 +304,7 @@ impl Aml for Tpm2 { | |
|
||
#[cfg(test)] | ||
mod tests { | ||
use alloc::vec::Vec; | ||
use super::*; | ||
use crate::gas; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,6 +72,7 @@ impl Aml for XSDT { | |
|
||
#[cfg(test)] | ||
mod tests { | ||
use alloc::vec::Vec; | ||
use super::XSDT; | ||
use crate::Aml; | ||
|
||
|