Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@ check: test clippy forbid check-minimal-versions gen
git diff --no-ext-diff --quiet --exit-code
cargo +nightly fmt --all -- --check

draft: push
hub pull-request -o --draft

pr: check push
hub pull-request -o

publish:
#!/usr/bin/env bash
set -euxo pipefail
Expand Down
2 changes: 1 addition & 1 deletion src/host_port.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ struct Tuple(String, u16);
impl From<&HostPort> for Tuple {
fn from(node: &HostPort) -> Self {
let host = match &node.host {
Host::Domain(domain) => domain.to_string(),
Host::Domain(domain) => domain.clone(),
Host::Ipv4(ipv4) => ipv4.to_string(),
Host::Ipv6(ipv6) => ipv6.to_string(),
};
Expand Down
9 changes: 2 additions & 7 deletions src/sort_order.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
use crate::common::*;

#[derive(Clone, Copy, Debug, PartialEq, IntoStaticStr, EnumString)]
#[derive(Clone, Copy, Debug, Default, PartialEq, IntoStaticStr, EnumString)]
#[strum(serialize_all = "kebab-case")]
pub(crate) enum SortOrder {
#[default]
Ascending,
Descending,
}
Expand All @@ -12,9 +13,3 @@ impl SortOrder {
self.into()
}
}

impl Default for SortOrder {
fn default() -> Self {
Self::Ascending
}
}
Loading