mirror of
https://github.com/Stremio/stremio-shell-ng.git
synced 2026-04-21 11:51:56 +00:00
FIx clippy
This commit is contained in:
parent
e68bb04642
commit
2e528268f3
1 changed files with 10 additions and 10 deletions
|
|
@ -7,7 +7,7 @@ use std::fmt;
|
||||||
// Responses
|
// Responses
|
||||||
const JSON_RESPONSES: [&str; 3] = ["track-list", "video-params", "metadata"];
|
const JSON_RESPONSES: [&str; 3] = ["track-list", "video-params", "metadata"];
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
|
#[derive(Serialize, Deserialize, Debug, Clone, Eq, PartialEq)]
|
||||||
pub struct PlayerProprChange {
|
pub struct PlayerProprChange {
|
||||||
name: String,
|
name: String,
|
||||||
data: serde_json::Value,
|
data: serde_json::Value,
|
||||||
|
|
@ -41,7 +41,7 @@ impl PlayerProprChange {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
|
#[derive(Serialize, Deserialize, Debug, Clone, Eq, PartialEq)]
|
||||||
pub struct PlayerEnded {
|
pub struct PlayerEnded {
|
||||||
reason: String,
|
reason: String,
|
||||||
}
|
}
|
||||||
|
|
@ -120,7 +120,7 @@ macro_rules! stringable {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::enum_variant_names)]
|
#[allow(clippy::enum_variant_names)]
|
||||||
#[derive(Display, FromStr, Serialize, Deserialize, Debug, Clone, PartialEq)]
|
#[derive(Display, FromStr, Serialize, Deserialize, Debug, Clone, Eq, PartialEq)]
|
||||||
#[serde(try_from = "String", into = "String")]
|
#[serde(try_from = "String", into = "String")]
|
||||||
#[display(style = "kebab-case")]
|
#[display(style = "kebab-case")]
|
||||||
pub enum InMsgFn {
|
pub enum InMsgFn {
|
||||||
|
|
@ -130,7 +130,7 @@ pub enum InMsgFn {
|
||||||
}
|
}
|
||||||
stringable!(InMsgFn);
|
stringable!(InMsgFn);
|
||||||
// Bool
|
// Bool
|
||||||
#[derive(Display, FromStr, Serialize, Deserialize, Debug, Clone, PartialEq)]
|
#[derive(Display, FromStr, Serialize, Deserialize, Debug, Clone, Eq, PartialEq)]
|
||||||
#[serde(try_from = "String", into = "String")]
|
#[serde(try_from = "String", into = "String")]
|
||||||
#[display(style = "kebab-case")]
|
#[display(style = "kebab-case")]
|
||||||
pub enum BoolProp {
|
pub enum BoolProp {
|
||||||
|
|
@ -141,7 +141,7 @@ pub enum BoolProp {
|
||||||
}
|
}
|
||||||
stringable!(BoolProp);
|
stringable!(BoolProp);
|
||||||
// Int
|
// Int
|
||||||
#[derive(Display, FromStr, Serialize, Deserialize, Debug, Clone, PartialEq)]
|
#[derive(Display, FromStr, Serialize, Deserialize, Debug, Clone, Eq, PartialEq)]
|
||||||
#[serde(try_from = "String", into = "String")]
|
#[serde(try_from = "String", into = "String")]
|
||||||
#[display(style = "kebab-case")]
|
#[display(style = "kebab-case")]
|
||||||
pub enum IntProp {
|
pub enum IntProp {
|
||||||
|
|
@ -151,7 +151,7 @@ pub enum IntProp {
|
||||||
}
|
}
|
||||||
stringable!(IntProp);
|
stringable!(IntProp);
|
||||||
// Fp
|
// Fp
|
||||||
#[derive(Display, FromStr, Serialize, Deserialize, Debug, Clone, PartialEq)]
|
#[derive(Display, FromStr, Serialize, Deserialize, Debug, Clone, Eq, PartialEq)]
|
||||||
#[serde(try_from = "String", into = "String")]
|
#[serde(try_from = "String", into = "String")]
|
||||||
#[display(style = "kebab-case")]
|
#[display(style = "kebab-case")]
|
||||||
pub enum FpProp {
|
pub enum FpProp {
|
||||||
|
|
@ -166,7 +166,7 @@ pub enum FpProp {
|
||||||
}
|
}
|
||||||
stringable!(FpProp);
|
stringable!(FpProp);
|
||||||
// Str
|
// Str
|
||||||
#[derive(Display, FromStr, Serialize, Deserialize, Debug, Clone, PartialEq)]
|
#[derive(Display, FromStr, Serialize, Deserialize, Debug, Clone, Eq, PartialEq)]
|
||||||
#[serde(try_from = "String", into = "String")]
|
#[serde(try_from = "String", into = "String")]
|
||||||
#[display(style = "kebab-case")]
|
#[display(style = "kebab-case")]
|
||||||
pub enum StrProp {
|
pub enum StrProp {
|
||||||
|
|
@ -189,7 +189,7 @@ pub enum StrProp {
|
||||||
stringable!(StrProp);
|
stringable!(StrProp);
|
||||||
|
|
||||||
// Any
|
// Any
|
||||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
|
#[derive(Serialize, Deserialize, Debug, Clone, Eq, PartialEq)]
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
pub enum PropKey {
|
pub enum PropKey {
|
||||||
Bool(BoolProp),
|
Bool(BoolProp),
|
||||||
|
|
@ -216,7 +216,7 @@ pub enum PropVal {
|
||||||
Num(f64),
|
Num(f64),
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Display, FromStr, Serialize, Deserialize, Debug, Clone, PartialEq)]
|
#[derive(Display, FromStr, Serialize, Deserialize, Debug, Clone, Eq, PartialEq)]
|
||||||
#[serde(try_from = "String", into = "String")]
|
#[serde(try_from = "String", into = "String")]
|
||||||
#[display(style = "kebab-case")]
|
#[display(style = "kebab-case")]
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
|
|
@ -226,7 +226,7 @@ pub enum MpvCmd {
|
||||||
}
|
}
|
||||||
stringable!(MpvCmd);
|
stringable!(MpvCmd);
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
|
#[derive(Serialize, Deserialize, Debug, Clone, Eq, PartialEq)]
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
pub enum CmdVal {
|
pub enum CmdVal {
|
||||||
Single((MpvCmd,)),
|
Single((MpvCmd,)),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue