Browse Source

tests: hot fix, ignore 'unused' warning

Those structures should be used in the future.

Signed-off-by: Zhouqi Jiang <[email protected]>
Zhouqi Jiang 10 months ago
parent
commit
36063323ff
2 changed files with 2 additions and 0 deletions
  1. 1 0
      tests/build-rename.rs
  2. 1 0
      tests/forward-struct.rs

+ 1 - 0
tests/build-rename.rs

@@ -136,6 +136,7 @@ impl rustsbi::EnvInfo for DummyEnvInfo {
     }
 }
 
+#[allow(unused)] // FIXME: hot fix, use it on unit test in the future.
 struct RealEnvInfo;
 
 impl rustsbi::EnvInfo for RealEnvInfo {

+ 1 - 0
tests/forward-struct.rs

@@ -2,6 +2,7 @@ use rustsbi::{Forward, RustSBI};
 
 // The `Forward` structure must build
 
+#[allow(unused)] // FIXME: hot fix, use it on unit test in the future.
 #[derive(RustSBI)]
 struct ForwardAll {
     #[rustsbi(