Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
micolous committed Apr 27, 2023
1 parent cf6eb6c commit 79edfe0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions webauthn-authenticator-rs/examples/cable_domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! ```sh
//! cargo run --example cable_domain --features cable -- --help
//! ```
use clap::{ArgGroup, CommandFactory, Parser, ValueHint, error::ErrorKind};
use clap::{error::ErrorKind, ArgGroup, CommandFactory, Parser, ValueHint};
use std::net::ToSocketAddrs;
use webauthn_authenticator_rs::cable::get_domain;

Expand Down Expand Up @@ -54,9 +54,7 @@ pub struct CliParser {
/// Returns [None] on resolution failure or no results.
fn resolver(hostname: &str) -> Option<String> {
(hostname, 443).to_socket_addrs().ok().and_then(|addrs| {
let mut o: String = addrs
.map(|addr| format!("{},", addr.ip()))
.collect();
let mut o: String = addrs.map(|addr| format!("{},", addr.ip())).collect();
o.pop();

if o.is_empty() {
Expand Down

0 comments on commit 79edfe0

Please sign in to comment.