Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby committed Oct 10, 2024
1 parent 232a09e commit 873c974
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub struct HostResults {
pub aliases: Vec<String>,
}

impl<'a> From<c_ares::HostResults<'a>> for HostResults {
impl From<c_ares::HostResults<'_>> for HostResults {
fn from(results: c_ares::HostResults) -> Self {
Self {
hostname: results.hostname().to_owned(),
Expand Down
2 changes: 1 addition & 1 deletion src/nameinfo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub struct NameInfoResult {
pub service: Option<String>,
}

impl<'a> From<c_ares::NameInfoResult<'a>> for NameInfoResult {
impl From<c_ares::NameInfoResult<'_>> for NameInfoResult {
fn from(result: c_ares::NameInfoResult) -> Self {
Self {
node: result.node().map(std::borrow::ToOwned::to_owned),
Expand Down

0 comments on commit 873c974

Please sign in to comment.