Formatted project

This commit is contained in:
DylanCa 2024-01-13 12:38:06 +01:00
parent c5529c384f
commit c9a0979c51
3 changed files with 19 additions and 18 deletions

View file

@ -61,7 +61,6 @@ pub struct Activity {
#[serde(skip_serializing_if = "Option::is_none")]
instance: Option<bool>,
#[serde(skip_serializing_if = "Option::is_none")]
flags: Option<i8>,

View file

@ -10,7 +10,9 @@ pub enum Error {
impl Display for Error {
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
let msg = match self {
Error::DiscordNotFound => Cow::Borrowed("Could not connect to client. Is Discord running ?"),
Error::DiscordNotFound => {
Cow::Borrowed("Could not connect to client. Is Discord running ?")
}
};
f.write_str(&msg)