Formatted project
This commit is contained in:
parent
c5529c384f
commit
c9a0979c51
3 changed files with 19 additions and 18 deletions
|
|
@ -61,7 +61,6 @@ pub struct Activity {
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
instance: Option<bool>,
|
instance: Option<bool>,
|
||||||
|
|
||||||
|
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
flags: Option<i8>,
|
flags: Option<i8>,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,9 @@ pub enum Error {
|
||||||
impl Display for Error {
|
impl Display for Error {
|
||||||
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
|
||||||
let msg = match self {
|
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)
|
f.write_str(&msg)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue