Browse Source

Fix errors

pull/137/head
Andrea Ciliberti 1 year ago
parent
commit
4b0b966026
  1. 2
      ctru-rs/src/services/romfs.rs
  2. 2
      ctru-sys/build.rs

2
ctru-rs/src/services/romfs.rs

@ -89,7 +89,7 @@ mod tests {
#[should_panic] #[should_panic]
fn romfs_lock() { fn romfs_lock() {
let romfs = RomFS::new().unwrap(); let romfs = RomFS::new().unwrap();
ROMFS_ACTIVE.try_lock().unwrap(); ROMFS_ACTIVE.try_lock().unwrap();
drop(romfs); drop(romfs);

2
ctru-sys/build.rs

@ -169,7 +169,7 @@ fn check_libctru_version() -> Result<(String, String, String), Box<dyn Error>> {
.expect("crate version should have '+' delimeter"); .expect("crate version should have '+' delimeter");
if lib_version != crate_built_version { 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}" "libctru version is {lib_version} but this crate was built for {crate_built_version}"
) )
.into()); .into());

Loading…
Cancel
Save