From 4b0b966026b8837e06713488afb90026589d2d92 Mon Sep 17 00:00:00 2001 From: Andrea Ciliberti Date: Sun, 12 Nov 2023 16:03:08 +0100 Subject: [PATCH] Fix errors --- ctru-rs/src/services/romfs.rs | 2 +- ctru-sys/build.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ctru-rs/src/services/romfs.rs b/ctru-rs/src/services/romfs.rs index a311e9c..e7f992c 100644 --- a/ctru-rs/src/services/romfs.rs +++ b/ctru-rs/src/services/romfs.rs @@ -89,7 +89,7 @@ mod tests { #[should_panic] fn romfs_lock() { let romfs = RomFS::new().unwrap(); - + ROMFS_ACTIVE.try_lock().unwrap(); drop(romfs); diff --git a/ctru-sys/build.rs b/ctru-sys/build.rs index 3ad5851..b1a48b3 100644 --- a/ctru-sys/build.rs +++ b/ctru-sys/build.rs @@ -169,7 +169,7 @@ fn check_libctru_version() -> Result<(String, String, String), Box> { .expect("crate version should have '+' delimeter"); if lib_version != crate_built_version { - Err(format!( + return Err(format!( "libctru version is {lib_version} but this crate was built for {crate_built_version}" ) .into());