File tree 11 files changed +11
-11
lines changed
11 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " tests"
3
- edition = " 2021 "
3
+ edition = " 2024 "
4
4
version.workspace = true
5
5
authors.workspace = true
6
6
license.workspace = true
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ enum Arch {
21
21
#[ ctor:: ctor]
22
22
fn init ( ) {
23
23
if std:: env:: var ( "RUST_LOG" ) . is_err ( ) {
24
- std:: env:: set_var ( "RUST_LOG" , "warn" ) ;
24
+ unsafe { std:: env:: set_var ( "RUST_LOG" , "warn" ) ; }
25
25
}
26
26
env_logger:: init ( ) ;
27
27
}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ version.workspace = true
6
6
authors.workspace = true
7
7
license.workspace = true
8
8
repository.workspace = true
9
- edition = " 2021 "
9
+ edition = " 2024 "
10
10
default-target = " i686-unknown-uefi"
11
11
12
12
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ impl Allocation {
140
140
assert ! ( filter. next( ) . is_none( ) ) ; // there shouldn't be another matching entry
141
141
}
142
142
let dest: usize = a. try_into ( ) . unwrap ( ) ;
143
- core:: ptr:: copy ( self . ptr . as_ptr ( ) , dest as * mut u8 , self . len ) ;
143
+ unsafe { core:: ptr:: copy ( self . ptr . as_ptr ( ) , dest as * mut u8 , self . len ) ; }
144
144
self . ptr = NonNull :: new ( a as * mut u8 ) . unwrap ( ) ;
145
145
self . should_be_at = None ;
146
146
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ version.workspace = true
4
4
authors.workspace = true
5
5
license.workspace = true
6
6
repository.workspace = true
7
- edition = " 2021 "
7
+ edition = " 2024 "
8
8
9
9
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
10
10
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ version.workspace = true
4
4
authors.workspace = true
5
5
license.workspace = true
6
6
repository.workspace = true
7
- edition = " 2021 "
7
+ edition = " 2024 "
8
8
9
9
[dependencies ]
10
10
towboot = { path = " ../towboot" , artifact = " bin" , target = " i686-unknown-uefi" }
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ version.workspace = true
4
4
authors.workspace = true
5
5
license.workspace = true
6
6
repository.workspace = true
7
- edition = " 2021 "
7
+ edition = " 2024 "
8
8
9
9
[dependencies ]
10
10
towboot = { path = " ../towboot" , artifact = " bin" , target = " x86_64-unknown-uefi" }
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ version.workspace = true
4
4
authors.workspace = true
5
5
license.workspace = true
6
6
repository.workspace = true
7
- edition = " 2021 "
7
+ edition = " 2024 "
8
8
9
9
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
10
10
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ impl VersionCommand {
179
179
/// This gets started from the command line.
180
180
fn main ( ) -> Result < ( ) , Box < dyn Error > > {
181
181
if env:: var ( "RUST_LOG" ) . is_err ( ) {
182
- env:: set_var ( "RUST_LOG" , "info" ) ;
182
+ unsafe { env:: set_var ( "RUST_LOG" , "info" ) ; }
183
183
}
184
184
env_logger:: init ( ) ;
185
185
let args: Cli = from_env ( ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ version.workspace = true
4
4
authors.workspace = true
5
5
license.workspace = true
6
6
repository.workspace = true
7
- edition = " 2021 "
7
+ edition = " 2024 "
8
8
9
9
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
10
10
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ impl Build {
90
90
/// This gets started from the command line.
91
91
fn main ( ) -> Result < ( ) , Box < dyn Error > > {
92
92
if env:: var ( "RUST_LOG" ) . is_err ( ) {
93
- env:: set_var ( "RUST_LOG" , "info" ) ;
93
+ unsafe { env:: set_var ( "RUST_LOG" , "info" ) ; }
94
94
}
95
95
env_logger:: init ( ) ;
96
96
let args: Cli = from_env ( ) ;
You can’t perform that action at this time.
0 commit comments