From ccc9dbf57164310342b5d5cb3250ce3af82a3bb0 Mon Sep 17 00:00:00 2001 From: Meziu <55318903+Meziu@users.noreply.github.com> Date: Mon, 20 Nov 2023 10:36:03 +0100 Subject: [PATCH] Update ctru-rs/examples/movement.rs Co-authored-by: Ian Chamberlain --- ctru-rs/examples/movement.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctru-rs/examples/movement.rs b/ctru-rs/examples/movement.rs index 1cbefc1..fe5e764 100644 --- a/ctru-rs/examples/movement.rs +++ b/ctru-rs/examples/movement.rs @@ -36,7 +36,7 @@ fn main() { // Be careful: reading without activating the sensors (as done before this loop) will result in a panic. println!( "\x1b[3;0HAcceleration: {:?} ", - Into::<(i16, i16, i16)>::into( + <(i16, i16, i16)>::from( hid.accelerometer_vector() .expect("could not retrieve acceleration vector") )