From 5eda3916ba0b5d79da8130d2b2a484aadf05b6d4 Mon Sep 17 00:00:00 2001 From: Jhynjhiruu Date: Sat, 10 Feb 2024 15:51:01 +0000 Subject: [PATCH] Fix doc tests --- ctru-rs/src/services/uds.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ctru-rs/src/services/uds.rs b/ctru-rs/src/services/uds.rs index 35c4f50..83fbded 100644 --- a/ctru-rs/src/services/uds.rs +++ b/ctru-rs/src/services/uds.rs @@ -395,7 +395,7 @@ impl Uds { /// # fn main() -> Result<(), Box> { /// # /// use ctru::services::uds::Uds; - /// let uds = Uds::new(None)?; + /// let mut uds = Uds::new(None)?; /// /// let networks = uds.scan(b"HBW\x10", None, None)?; /// # @@ -455,7 +455,7 @@ impl Uds { /// # fn main() -> Result<(), Box> { /// # /// use ctru::services::uds::Uds; - /// let uds = Uds::new(None)?; + /// let mut uds = Uds::new(None)?; /// /// let networks = uds.scan(b"HBW\x10", None, None)?; /// let appdata = uds.get_network_appdata(&networks[0], None)?; @@ -510,7 +510,7 @@ impl Uds { /// # fn main() -> Result<(), Box> { /// # /// use ctru::services::uds::{ConnectionType, Uds}; - /// let uds = Uds::new(None)?; + /// let mut uds = Uds::new(None)?; /// /// let networks = uds.scan(b"HBW\x10", None, None)?; /// uds.connect_network(&networks[0], b"udsdemo passphrase c186093cd2652741\0", ConnectionType::Client, 1)?;