File tree Expand file tree Collapse file tree 6 files changed +7
-9
lines changed
uefi-test-runner/src/boot Expand file tree Collapse file tree 6 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 11use uefi:: table:: boot:: { AllocateType , BootServices , MemoryType } ;
22
3- use crate :: alloc:: vec:: Vec ;
3+ use alloc:: vec:: Vec ;
44
55pub fn test ( bt : & BootServices ) {
66 info ! ( "Testing memory functions" ) ;
Original file line number Diff line number Diff line change 11use super :: chars:: { Char16 , NUL_16 } ;
22use super :: strs:: { CStr16 , FromSliceWithNulError } ;
3- use crate :: alloc:: vec:: Vec ;
43use crate :: data_types:: strs:: EqStrUntilNul ;
54use crate :: data_types:: UnalignedSlice ;
65use crate :: polyfill:: vec_into_raw_parts;
6+ use alloc:: vec:: Vec ;
77use core:: fmt;
88use core:: ops;
99
@@ -155,8 +155,8 @@ impl<StrType: AsRef<str> + ?Sized> EqStrUntilNul<StrType> for CString16 {
155155#[ cfg( test) ]
156156mod tests {
157157 use super :: * ;
158- use crate :: alloc:: string:: String ;
159- use crate :: alloc:: vec;
158+ use alloc:: string:: String ;
159+ use alloc:: vec;
160160
161161 #[ test]
162162 fn test_cstring16_from_str ( ) {
Original file line number Diff line number Diff line change @@ -478,7 +478,7 @@ where
478478#[ cfg( test) ]
479479mod tests {
480480 use super :: * ;
481- use crate :: alloc:: string:: String ;
481+ use alloc:: string:: String ;
482482 use uefi_macros:: { cstr16, cstr8} ;
483483
484484 // Tests if our CStr8 type can be constructed from a valid core::ffi::CStr
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use core::marker::PhantomData;
33use core:: mem:: MaybeUninit ;
44
55#[ cfg( feature = "alloc" ) ]
6- use crate :: alloc:: vec:: Vec ;
6+ use alloc:: vec:: Vec ;
77
88/// Slice backed by a potentially-unaligned pointer.
99///
Original file line number Diff line number Diff line change 6868#![ deny( clippy:: all) ]
6969#![ deny( clippy:: must_use_candidate) ]
7070
71- // Enable once we use vec![] or similar
72- // #[cfg_attr(feature = "alloc", macro_use)]
7371#[ cfg( feature = "alloc" ) ]
7472extern crate alloc;
7573
Original file line number Diff line number Diff line change @@ -398,10 +398,10 @@ impl FileProtocolInfo for FileSystemVolumeLabel {}
398398#[ cfg( test) ]
399399mod tests {
400400 use super :: * ;
401- use crate :: alloc:: vec;
402401 use crate :: table:: runtime:: TimeParams ;
403402 use crate :: table:: runtime:: { Daylight , Time } ;
404403 use crate :: CString16 ;
404+ use alloc:: vec;
405405
406406 fn validate_layout < T : InfoInternal + ?Sized > ( info : & T , name : & [ Char16 ] ) {
407407 // Check the hardcoded struct alignment.
You can’t perform that action at this time.
0 commit comments