Skip to content

Commit

Permalink
Added #[must_use] Attributes for Configuration Options
Browse files Browse the repository at this point in the history
  • Loading branch information
Redfire75369 authored and valenting committed Nov 9, 2023
1 parent 67fc273 commit 58bdc87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions idna/src/uts46.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ impl Idna {
}

#[derive(Clone, Copy)]
#[must_use]
pub struct Config {
use_std3_ascii_rules: bool,
transitional_processing: bool,
Expand Down
1 change: 1 addition & 0 deletions url/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down

0 comments on commit 58bdc87

Please sign in to comment.