Skip to content

Commit 5f454e2

Browse files
authored
Added #[must_use] Attributes for Configuration Options (#876)
1 parent 67fc273 commit 5f454e2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

idna/src/uts46.rs

+1
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,7 @@ impl Idna {
509509
}
510510

511511
#[derive(Clone, Copy)]
512+
#[must_use]
512513
pub struct Config {
513514
use_std3_ascii_rules: bool,
514515
transitional_processing: bool,

url/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ pub struct Url {
205205

206206
/// Full configuration for the URL parser.
207207
#[derive(Copy, Clone)]
208+
#[must_use]
208209
pub struct ParseOptions<'a> {
209210
base_url: Option<&'a Url>,
210211
encoding_override: EncodingOverride<'a>,

0 commit comments

Comments
 (0)