fix(typo): typos corrected typ to typo
All checks were successful
/ build (push) Successful in 1s
/ check (clippy) (push) Successful in 2s
/ check (module-ipv4-only-test) (push) Successful in 7s
/ check (module-ipv4-test) (push) Successful in 7s
/ check (module-ipv6-only-test) (push) Successful in 7s
/ check (module-ipv6-test) (push) Successful in 7s
/ check (module-nginx-test) (push) Successful in 7s
/ check (nextest) (push) Successful in 2s
/ check (treefmt) (push) Successful in 3s
/ report-size (push) Successful in 2s

This is wrong for us (we use typ instead of type, not typo, because type
is a rust keyword).
This commit is contained in:
Jalil David Salamé Messina 2025-03-04 09:44:23 +01:00
parent 42482574ac
commit f16c3b9138
Signed by: jalil
GPG key ID: F016B9E770737A0B

View file

@ -37,14 +37,14 @@ impl std::fmt::Display for Action<'_> {
match self {
Action::Reassign { domain, to, ttl } => {
let ttl = ttl.as_secs();
let typ = match to {
let kind = match to {
IpAddr::V4(_) => "A",
IpAddr::V6(_) => "AAAA",
};
// Delete previous record of type `typ`
writeln!(f, "update delete {domain} {ttl} IN {typ}")?;
// Delete previous record of type `kind`
writeln!(f, "update delete {domain} {ttl} IN {kind}")?;
// Add record with new IP
writeln!(f, "update add {domain} {ttl} IN {typ} {to}")
writeln!(f, "update add {domain} {ttl} IN {kind} {to}")
}
}
}