feat: fix clippy
This commit is contained in:
@@ -9,7 +9,7 @@ use tabled::settings::Style;
|
||||
use crate::config::TinyEncryptConfig;
|
||||
use crate::util::TINY_ENC_CONFIG_FILE;
|
||||
|
||||
#[derive(Tabled, Ord, Eq)]
|
||||
#[derive(Tabled, Eq)]
|
||||
struct ConfigProfile {
|
||||
profiles: String,
|
||||
keys: String,
|
||||
@@ -21,6 +21,12 @@ impl PartialEq<Self> for ConfigProfile {
|
||||
}
|
||||
}
|
||||
|
||||
impl Ord for ConfigProfile {
|
||||
fn cmp(&self, other: &Self) -> Ordering {
|
||||
self.profiles.cmp(&other.profiles)
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialOrd for ConfigProfile {
|
||||
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
|
||||
self.profiles.partial_cmp(&other.profiles)
|
||||
|
||||
Reference in New Issue
Block a user