From 58bdc878ad963b9b78419d9216384c5bc445cec0 Mon Sep 17 00:00:00 2001 From: Redfire Date: Thu, 2 Nov 2023 17:34:57 +0800 Subject: [PATCH] Added #[must_use] Attributes for Configuration Options --- idna/src/uts46.rs | 1 + url/src/lib.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/idna/src/uts46.rs b/idna/src/uts46.rs index 2ffb8414b..b082416c8 100644 --- a/idna/src/uts46.rs +++ b/idna/src/uts46.rs @@ -509,6 +509,7 @@ impl Idna { } #[derive(Clone, Copy)] +#[must_use] pub struct Config { use_std3_ascii_rules: bool, transitional_processing: bool, diff --git a/url/src/lib.rs b/url/src/lib.rs index febdb3609..71b12ff64 100644 --- a/url/src/lib.rs +++ b/url/src/lib.rs @@ -205,6 +205,7 @@ pub struct Url { /// Full configuration for the URL parser. #[derive(Copy, Clone)] +#[must_use] pub struct ParseOptions<'a> { base_url: Option<&'a Url>, encoding_override: EncodingOverride<'a>,