add serde default attribute for ResolverOpts

This commit is contained in:
Azat Mirzaianov 2019-09-24 13:46:41 +04:00 committed by Benjamin Fry
parent 653fb7b53b
commit 651b8dae02
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
.vscode/
.idea/
*.swp

View File

@ -499,6 +499,7 @@ impl Default for LookupIpStrategy {
#[derive(Debug, Clone, Copy, Eq, PartialEq)]
#[cfg_attr(feature = "serde-config", derive(Serialize, Deserialize))]
#[allow(dead_code)] // TODO: remove after all params are supported
#[serde(default)]
pub struct ResolverOpts {
/// Sets the number of dots that must appear (unless it's a final dot representing the root)
/// that must appear before a query is assumed to include the TLD. The default is one, which