File tree Expand file tree Collapse file tree 7 files changed +6
-95
lines changed Expand file tree Collapse file tree 7 files changed +6
-95
lines changed Original file line number Diff line number Diff line change @@ -88,8 +88,8 @@ impl TagTrait for BootLoaderNameTag {
88
88
mod tests {
89
89
use super :: * ;
90
90
use crate :: tag:: { GenericTag , TagBytesRef } ;
91
- use crate :: test_util:: AlignedBytes ;
92
91
use core:: borrow:: Borrow ;
92
+ use multiboot2_common:: test_utils:: AlignedBytes ;
93
93
94
94
#[ rustfmt:: skip]
95
95
fn get_bytes ( ) -> AlignedBytes < 16 > {
Original file line number Diff line number Diff line change @@ -82,8 +82,8 @@ impl TagTrait for CommandLineTag {
82
82
mod tests {
83
83
use super :: * ;
84
84
use crate :: tag:: { GenericTag , TagBytesRef } ;
85
- use crate :: test_util:: AlignedBytes ;
86
85
use core:: borrow:: Borrow ;
86
+ use multiboot2_common:: test_utils:: AlignedBytes ;
87
87
88
88
#[ rustfmt:: skip]
89
89
fn get_bytes ( ) -> AlignedBytes < 16 > {
Original file line number Diff line number Diff line change @@ -56,8 +56,6 @@ extern crate bitflags;
56
56
57
57
#[ cfg( feature = "builder" ) ]
58
58
pub mod builder;
59
- #[ cfg( test) ]
60
- pub ( crate ) mod test_util;
61
59
62
60
mod boot_information;
63
61
mod boot_loader_name;
@@ -116,7 +114,7 @@ pub const MAGIC: u32 = 0x36d76289;
116
114
#[ cfg( test) ]
117
115
mod tests {
118
116
use super :: * ;
119
- use crate :: test_util :: AlignedBytes ;
117
+ use multiboot2_common :: test_utils :: AlignedBytes ;
120
118
121
119
/// Compile time test to check if the boot information is Send and Sync.
122
120
/// This test is relevant to give library users flexebility in passing the
Original file line number Diff line number Diff line change @@ -129,8 +129,8 @@ impl<'a> Debug for ModuleIter<'a> {
129
129
mod tests {
130
130
use super :: * ;
131
131
use crate :: tag:: { GenericTag , TagBytesRef } ;
132
- use crate :: test_util:: AlignedBytes ;
133
132
use core:: borrow:: Borrow ;
133
+ use multiboot2_common:: test_utils:: AlignedBytes ;
134
134
135
135
#[ rustfmt:: skip]
136
136
fn get_bytes ( ) -> AlignedBytes < 24 > {
Original file line number Diff line number Diff line change @@ -72,8 +72,8 @@ impl Debug for SmbiosTag {
72
72
mod tests {
73
73
use super :: * ;
74
74
use crate :: tag:: { GenericTag , TagBytesRef } ;
75
- use crate :: test_util:: AlignedBytes ;
76
75
use core:: borrow:: Borrow ;
76
+ use multiboot2_common:: test_utils:: AlignedBytes ;
77
77
78
78
#[ rustfmt:: skip]
79
79
fn get_bytes ( ) -> AlignedBytes < 32 > {
Original file line number Diff line number Diff line change @@ -237,9 +237,9 @@ impl<'a> Iterator for TagIter<'a> {
237
237
#[ cfg( test) ]
238
238
mod tests {
239
239
use super :: * ;
240
- use crate :: test_util:: AlignedBytes ;
241
240
use core:: borrow:: Borrow ;
242
241
use core:: mem;
242
+ use multiboot2_common:: test_utils:: AlignedBytes ;
243
243
244
244
#[ test]
245
245
fn test_new_generic_tag ( ) {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments