Add some more lints, and fix the compile errors they generate

This commit is contained in:
Paul Woolcock
2018-08-28 06:14:56 -04:00
parent 4e5a2f5c51
commit 5b24922d9e
10 changed files with 24 additions and 10 deletions
+2 -5
View File
@@ -20,18 +20,15 @@ pub struct Notification {
}
/// The type of notification.
#[derive(Debug, Clone, Deserialize)]
#[derive(Debug, Clone, Copy, Deserialize)]
#[serde(rename_all = "lowercase")]
pub enum NotificationType {
/// Someone mentioned the application client in another status.
#[serde(rename = "mention")]
Mention,
/// Someone reblogged one of the application client's statuses.
#[serde(rename = "reblog")]
Reblog,
/// Someone favourited one of the application client's statuses.
#[serde(rename = "favourite")]
Favourite,
/// Someone followed the application client.
#[serde(rename = "follow")]
Follow,
}