Skip to content

Commit 9792259

Browse files
committed
nostr: add #[must_use] to Nip11GetOptions methods
Signed-off-by: Yuki Kishimoto <[email protected]>
1 parent 5da0b97 commit 9792259

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/nostr/src/nips/nip11.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,14 @@ impl Default for Nip11GetOptions {
7878
impl Nip11GetOptions {
7979
/// New default options
8080
#[inline]
81+
#[must_use]
8182
pub fn new() -> Self {
8283
Self::default()
8384
}
8485

8586
/// Set proxy
8687
#[inline]
88+
#[must_use]
8789
#[cfg(not(target_arch = "wasm32"))]
8890
pub fn proxy(mut self, proxy: SocketAddr) -> Self {
8991
self.proxy = Some(proxy);
@@ -92,6 +94,7 @@ impl Nip11GetOptions {
9294

9395
/// Set timeout
9496
#[inline]
97+
#[must_use]
9598
pub fn timeout(mut self, timeout: Duration) -> Self {
9699
self.timeout = timeout;
97100
self

0 commit comments

Comments
 (0)