diff --git a/src/client.rs b/src/client.rs index 1c9cf1d9c02..8897b4cf3c6 100644 --- a/src/client.rs +++ b/src/client.rs @@ -119,6 +119,7 @@ pub trait PollClient { } } +#[must_use = "Syscalls must be polled with the `syscall` macro"] pub struct FutureResult<'c, T, C: ?Sized> where C: PollClient, diff --git a/src/serde_extensions.rs b/src/serde_extensions.rs index 8c372d1a3e9..fa298269665 100644 --- a/src/serde_extensions.rs +++ b/src/serde_extensions.rs @@ -180,6 +180,7 @@ where /// A result returned by [`ExtensionClient`][] and clients using it. pub type ExtensionResult<'a, E, T, C> = Result, ClientError>; +#[must_use = "Syscalls must be polled with the `syscall` macro"] /// A future of an [`ExtensionResult`][]. pub struct ExtensionFutureResult<'c, E, T, C: ?Sized> { client: &'c mut C,