Skip to content

Commit aacb0ed

Browse files
authored
fixed some smaller errors and warnings (#71)
1 parent 9dd4c26 commit aacb0ed

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.cargo/config renamed to .cargo/config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ rustflags = [
2020
# target = "x86_64-pc-windows-gnu" # Windows GNU Toolchain
2121
# target = "x86_64-pc-windows-msvc" # Windows MSVC Toolchain (no debugging)
2222
# target = "thumbv7m-none-eabi" # Cortex-M3
23-
# target = "thumbv7em-none-eabihf" # Cortex-M4
23+
# target = "thumbv7em-none-eabihf" # Cortex-M4

freertos-rust-examples/build.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ fn main() {
4141
copy(
4242
"examples/stm32-cortex-m3/memory.x",
4343
PathBuf::from(out_dir.as_str()).join("memory.x"),
44-
).unwrap();
44+
)
45+
.unwrap();
4546
}
4647
if target == "thumbv7em-none-eabihf" {
4748
b.freertos_config("examples/stm32-cortex-m4-blackpill");
@@ -56,10 +57,11 @@ fn main() {
5657
copy(
5758
"examples/nrf9160/memory.x",
5859
PathBuf::from(out_dir.as_str()).join("memory.x"),
59-
).unwrap();
60+
)
61+
.unwrap();
6062
}
6163

62-
b.compile().unwrap_or_else(|e| { panic!(e.to_string()) });
64+
b.compile().unwrap_or_else(|e| panic!("{}", e));
6365
}
6466

6567
/// Print relevant environment variables

freertos-rust-examples/examples/linux/main.rs

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ fn main() {
2929
// println!("Free Memory: {}!", free);
3030
println!("Starting scheduler");
3131
FreeRtosUtils::start_scheduler();
32+
#[allow(unreachable_code)]
3233
loop {
3334
println!("Loop forever!");
3435
}

0 commit comments

Comments
 (0)