File tree 3 files changed +8
-6
lines changed
3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 11
11
- version-*
12
12
schedule :
13
13
- cron : ' 0 0 * * 0-6'
14
+ env :
15
+ RUSTFLAGS : -D warnings
14
16
jobs :
15
17
test_aarch64 :
16
18
name : Integration Test (AArch64)
Original file line number Diff line number Diff line change @@ -83,13 +83,15 @@ pub fn init(st: &mut SystemTable<Boot>) -> Result<()> {
83
83
// Setup the system table singleton
84
84
SYSTEM_TABLE . store ( st. as_ptr ( ) . cast_mut ( ) , Ordering :: Release ) ;
85
85
86
- unsafe {
87
- // Setup logging and memory allocation
86
+ // Setup logging and memory allocation
88
87
89
- #[ cfg( feature = "logger" ) ]
88
+ #[ cfg( feature = "logger" ) ]
89
+ unsafe {
90
90
logger:: init ( st) ;
91
+ }
91
92
92
- #[ cfg( feature = "global_allocator" ) ]
93
+ #[ cfg( feature = "global_allocator" ) ]
94
+ unsafe {
93
95
uefi:: allocator:: init ( st) ;
94
96
}
95
97
Original file line number Diff line number Diff line change @@ -1949,8 +1949,6 @@ mod tests {
1949
1949
use super :: { MemoryDescriptor , MemoryMapIter } ;
1950
1950
1951
1951
fn buffer_to_map ( buffer : & mut [ MemoryDescriptor ] ) -> MemoryMap {
1952
- let desc_count = buffer. len ( ) ;
1953
-
1954
1952
let byte_buffer = {
1955
1953
unsafe {
1956
1954
core:: slice:: from_raw_parts_mut ( buffer. as_mut_ptr ( ) as * mut u8 , size_of_val ( buffer) )
You can’t perform that action at this time.
0 commit comments