Skip to content

Commit

Permalink
deprecate Edns::set_option
Browse files Browse the repository at this point in the history
  • Loading branch information
leshow committed Jan 20, 2021
1 parent 636a371 commit 8811329
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/proto/src/op/edns.rs
Expand Up @@ -115,14 +115,10 @@ impl Edns {
}

/// Set the specified EDNS option
#[deprecated(note = "Please use options_mut() to modify")]
pub fn set_option(&mut self, option: EdnsOption) {
self.options.insert(option);
}

/// Remove the option specified by the `EdnsCode`
pub fn remove_option(&mut self, option: EdnsCode) {
self.options.remove(option);
}
}

impl<'a> From<&'a Record> for Edns {
Expand Down

0 comments on commit 8811329

Please sign in to comment.