Skip to content

Commit

Permalink
chore(deps): Bump async-std-resolver from 0.20.0 to 0.20.2 (reacherhq…
Browse files Browse the repository at this point in the history
…#912)

* chore(deps): Bump async-std-resolver from 0.20.0 to 0.20.2

Bumps [async-std-resolver](https://github.com/bluejekyll/trust-dns) from 0.20.0 to 0.20.2.
- [Release notes](https://github.com/bluejekyll/trust-dns/releases)
- [Changelog](https://github.com/bluejekyll/trust-dns/blob/main/CHANGELOG.md)
- [Commits](bluejekyll/trust-dns@v0.20.0...v0.20.2)

Signed-off-by: dependabot-preview[bot] <[email protected]>

* Fix clippy

* Remove procfile

* Fix lint

* Remove ignore

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Amaury M <[email protected]>
  • Loading branch information
dependabot-preview[bot] and amaury1093 authored May 17, 2021
1 parent 1276a98 commit ae270d5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 26 deletions.
13 changes: 0 additions & 13 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,3 @@ updates:
time: "02:00"
timezone: Europe/Berlin
open-pull-requests-limit: 10
ignore:
- dependency-name: async-std-resolver
versions:
- 0.20.1
- dependency-name: trust-dns-proto
versions:
- 0.20.1
- dependency-name: hyper
versions:
- 0.14.4
- dependency-name: fast-socks5
versions:
- 0.4.2
17 changes: 9 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Procfile

This file was deleted.

2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ travis-ci = { repository = "reacherhq/check-if-email-exists", service = "github"
[dependencies]
async-smtp = { version = "0.4.0", features = ["socks5"] }
async-std = "1.9.0"
async-std-resolver = "0.20.0"
async-std-resolver = "0.20.2"
fast-socks5 = "0.4.2"
futures = "0.3.14"
log = "0.4.14"
Expand Down
6 changes: 3 additions & 3 deletions core/src/mx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl Serialize for MxDetails {
.map(|host| host.exchange().to_string())
.collect::<Vec<_>>()
})
.unwrap_or_else(|_| vec![]); // In case of a resolve error, we don't serialize the error.
.unwrap_or_else(|_| Vec::new()); // In case of a resolve error, we don't serialize the error.

let mut map = serializer.serialize_map(Some(2))?;
map.serialize_entry("accepts_mail", &!records.is_empty())?;
Expand All @@ -73,12 +73,12 @@ pub enum MxError {
IoError(Error),
/// Error while resolving MX lookups.
#[serde(serialize_with = "ser_with_display")]
ResolveError(ResolveError),
ResolveError(Box<ResolveError>),
}

impl From<ResolveError> for MxError {
fn from(error: ResolveError) -> Self {
MxError::ResolveError(error)
MxError::ResolveError(Box::new(error))
}
}

Expand Down

0 comments on commit ae270d5

Please sign in to comment.