Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Commit

Permalink
upgrade to 2018 edition
Browse files Browse the repository at this point in the history
  • Loading branch information
ciphax committed Mar 16, 2019
1 parent 05690f1 commit dbc66f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ authors = ["Matthias Herzog"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/kegato/letsencrypt-inwx"
edition = "2018"

[package.metadata.deb]
depends = ""
Expand Down
6 changes: 3 additions & 3 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ use std::io::BufReader;
use std::thread::sleep;
use std::time::{Duration, Instant};
use clap::{Arg, App, SubCommand};
use config::Config;
use inwx::{Inwx, InwxError};
use dns::{check_txt_record, lookup_real_domain};
use crate::config::Config;
use crate::inwx::{Inwx, InwxError};
use crate::dns::{check_txt_record, lookup_real_domain};

impl From<InwxError> for String {
fn from(inwx_error: InwxError) -> String {
Expand Down
2 changes: 1 addition & 1 deletion src/inwx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl<'a> Inwx<'a> {
let domain_root = text.text();

if domain.ends_with(&format!(".{}", domain_root)) {
let mut name = &domain[0..domain.len() - domain_root.len() - 1];
let name = &domain[0..domain.len() - domain_root.len() - 1];

return Ok((domain_root.to_owned(), name.to_owned()));
} else if domain == domain_root {
Expand Down

0 comments on commit dbc66f6

Please sign in to comment.