summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh McKinney <joshka@users.noreply.github.com>2023-04-12 17:38:54 -0700
committerD. Scott Boggs <scott@tams.tech>2023-09-01 07:50:40 -0400
commit92368287628dc69e3b3d80bd0f108e913f51531c (patch)
treea490c5d62f43333ae1d4ab5162271deeb20d656e
parent6a5a8576f830d71f266c75f66f46ad02a9e36faf (diff)
fix: address two clippy issues
- Default can be derived on Visibility - useless conversion to the same type on scopes
-rw-r--r--entities/src/visibility.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/entities/src/visibility.rs b/entities/src/visibility.rs
index 94f0a35..43d0afe 100644
--- a/entities/src/visibility.rs
+++ b/entities/src/visibility.rs
@@ -3,7 +3,7 @@ use serde::Deserialize;
use serde::Serialize;
/// The visibility of a status.
-#[derive(Clone, Copy, Debug, Deserialize, Serialize, PartialEq, Eq, is_enum_variant, Default)]
+#[derive(Clone, Copy, Debug, Default, Deserialize, Serialize, PartialEq, Eq, is_enum_variant)]
#[serde(rename_all = "lowercase")]
pub enum Visibility {
/// A Direct message to a user