forked from islet-project/islet
-
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.
Fix name resolution errors related to cfg(test)
This commit is for fixing the below error. `cfg(test)` does not seem to be passed to the imported library. To sidestep this issue, the duplicate `MockDevice` is maintained (one for `io`'s tests and another for `macro`'s tests). ``` $ ./scripts/tests/crates.sh error[E0432]: unresolved import `io::test` --> rmm/src/macro.rs:77:13 | 77 | use io::test::MockDevice; | ^^^^ could not find `test` in `io` ``` Signed-off-by: Changho Choi <[email protected]>
- Loading branch information
Showing
2 changed files
with
49 additions
and
4 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