From 502bcebe34f2dc6bfe307755fde2128baaea00f7 Mon Sep 17 00:00:00 2001 From: Andrea Ciliberti Date: Wed, 15 Feb 2023 13:30:26 +0100 Subject: [PATCH] Fixed nits --- ctru-rs/Cargo.toml | 2 +- ctru-rs/src/lib.rs | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/ctru-rs/Cargo.toml b/ctru-rs/Cargo.toml index 84e837b..94ff0bb 100644 --- a/ctru-rs/Cargo.toml +++ b/ctru-rs/Cargo.toml @@ -16,7 +16,7 @@ cfg-if = "1.0" ctru-sys = { path = "../ctru-sys", version = "0.4" } const-zero = "0.1.0" linker-fix-3ds = { git = "https://github.com/rust3ds/rust-linker-fix-3ds.git" } -pthread-3ds = {git = "https://github.com/rust3ds/pthread-3ds.git" } +pthread-3ds = { git = "https://github.com/rust3ds/pthread-3ds.git" } libc = "0.2.121" bitflags = "1.0.0" widestring = "0.2.2" diff --git a/ctru-rs/src/lib.rs b/ctru-rs/src/lib.rs index fd5d318..8dd8abf 100644 --- a/ctru-rs/src/lib.rs +++ b/ctru-rs/src/lib.rs @@ -7,12 +7,9 @@ #![feature(nonnull_slice_from_raw_parts)] #![test_runner(test_runner::run)] -// These functions are imported to assure ´cargo´ we need to link the crates. -// These don't need to run to link the functions properly! -#[allow(unused_imports)] -use linker_fix_3ds::init as link_init; -#[allow(unused_imports)] -use pthread_3ds::init as pthread_init; +// Nothing is imported from these crates but their inclusion here assures correct linking of the missing implementations. +extern crate linker_fix_3ds; +extern crate pthread_3ds; #[no_mangle] #[cfg(feature = "big-stack")]