diff --git a/src/emulator/gba/mod.rs b/src/emulator/gba/mod.rs index df97ad6..fa51cb3 100644 --- a/src/emulator/gba/mod.rs +++ b/src/emulator/gba/mod.rs @@ -180,6 +180,7 @@ impl Emulator { } /// A future that executes a future until the emulator closes. +#[must_use = "You need to await this future."] pub struct UntilEmulatorCloses<'a, F> { emulator: &'a Emulator, future: F, diff --git a/src/emulator/gcn/mod.rs b/src/emulator/gcn/mod.rs index c6f13cf..39c69d0 100644 --- a/src/emulator/gcn/mod.rs +++ b/src/emulator/gcn/mod.rs @@ -150,6 +150,7 @@ impl Emulator { } /// A future that executes a future until the emulator closes. +#[must_use = "You need to await this future."] pub struct UntilEmulatorCloses<'a, F> { emulator: &'a Emulator, future: F, diff --git a/src/emulator/genesis/mod.rs b/src/emulator/genesis/mod.rs index 84d5c25..ad941d8 100644 --- a/src/emulator/genesis/mod.rs +++ b/src/emulator/genesis/mod.rs @@ -166,6 +166,7 @@ impl Emulator { } /// A future that executes a future until the emulator closes. +#[must_use = "You need to await this future."] pub struct UntilEmulatorCloses<'a, F> { emulator: &'a Emulator, future: F, diff --git a/src/emulator/ps1/mod.rs b/src/emulator/ps1/mod.rs index 8a1250a..f8c20dd 100644 --- a/src/emulator/ps1/mod.rs +++ b/src/emulator/ps1/mod.rs @@ -151,6 +151,7 @@ impl Emulator { } /// A future that executes a future until the emulator closes. +#[must_use = "You need to await this future."] pub struct UntilEmulatorCloses<'a, F> { emulator: &'a Emulator, future: F, diff --git a/src/emulator/ps2/mod.rs b/src/emulator/ps2/mod.rs index b734dd5..05323b9 100644 --- a/src/emulator/ps2/mod.rs +++ b/src/emulator/ps2/mod.rs @@ -146,6 +146,7 @@ impl Emulator { } /// A future that executes a future until the emulator closes. +#[must_use = "You need to await this future."] pub struct UntilEmulatorCloses<'a, F> { emulator: &'a Emulator, future: F, diff --git a/src/emulator/sms/mod.rs b/src/emulator/sms/mod.rs index 8b81e24..64bf063 100644 --- a/src/emulator/sms/mod.rs +++ b/src/emulator/sms/mod.rs @@ -130,6 +130,7 @@ impl Emulator { } /// A future that executes a future until the emulator closes. +#[must_use = "You need to await this future."] pub struct UntilEmulatorCloses<'a, F> { emulator: &'a Emulator, future: F, diff --git a/src/emulator/wii/mod.rs b/src/emulator/wii/mod.rs index bf57084..72c7b60 100644 --- a/src/emulator/wii/mod.rs +++ b/src/emulator/wii/mod.rs @@ -231,6 +231,7 @@ impl Emulator { } /// A future that executes a future until the emulator closes. +#[must_use = "You need to await this future."] pub struct UntilEmulatorCloses<'a, F> { emulator: &'a Emulator, future: F, diff --git a/src/future/mod.rs b/src/future/mod.rs index f255429..a9aa26a 100644 --- a/src/future/mod.rs +++ b/src/future/mod.rs @@ -271,6 +271,7 @@ impl Signature { } /// A future that executes a future until the process closes. +#[must_use = "You need to await this future."] pub struct UntilProcessCloses<'a, F> { process: &'a Process, future: F, diff --git a/src/future/time.rs b/src/future/time.rs index d510a82..8436ad0 100644 --- a/src/future/time.rs +++ b/src/future/time.rs @@ -115,6 +115,7 @@ pub fn sleep(duration: Duration) -> Sleep { /// // the future timed out /// } /// ``` +#[must_use = "You need to await this future."] pub struct Timeout { sleep: Sleep, future: F,