Fix linter warnings from nightly clippy
This commit is contained in:
parent
e1cf8f69e6
commit
16a685a727
10
src/de.rs
10
src/de.rs
|
@ -267,7 +267,7 @@ mod tests {
|
|||
struct SimpleDuration {
|
||||
#[serde(deserialize_with = "duration_opt")]
|
||||
value: Option<Duration>,
|
||||
};
|
||||
}
|
||||
|
||||
assert_de_tokens(
|
||||
&SimpleDuration {
|
||||
|
@ -330,7 +330,7 @@ mod tests {
|
|||
struct SimpleDuration {
|
||||
#[serde(deserialize_with = "duration_millis_opt")]
|
||||
value: Option<Duration>,
|
||||
};
|
||||
}
|
||||
|
||||
assert_de_tokens(
|
||||
&SimpleDuration {
|
||||
|
@ -425,7 +425,7 @@ mod tests {
|
|||
struct SimpleDuration {
|
||||
#[serde(deserialize_with = "duration_millis")]
|
||||
value: Duration,
|
||||
};
|
||||
}
|
||||
|
||||
assert_de_tokens(
|
||||
&SimpleDuration {
|
||||
|
@ -478,7 +478,7 @@ mod tests {
|
|||
struct SimpleDuration {
|
||||
#[serde(deserialize_with = "duration_nanos")]
|
||||
value: Duration,
|
||||
};
|
||||
}
|
||||
|
||||
assert_de_tokens(
|
||||
&SimpleDuration {
|
||||
|
@ -546,7 +546,7 @@ mod tests {
|
|||
struct SimpleFlags {
|
||||
#[serde(deserialize_with = "bitflags_u8")]
|
||||
value: Flags,
|
||||
};
|
||||
}
|
||||
|
||||
assert_de_tokens(
|
||||
&SimpleFlags {
|
||||
|
|
|
@ -140,9 +140,9 @@ pub enum VideoFormat {
|
|||
/// I444 format.
|
||||
#[serde(rename = "VIDEO_FORMAT_I444")]
|
||||
I444,
|
||||
/// RGB format.
|
||||
/// RGBA format.
|
||||
#[serde(rename = "VIDEO_FORMAT_RGBA")]
|
||||
RGB,
|
||||
Rgba,
|
||||
}
|
||||
|
||||
/// Supported color spaces for video output.
|
||||
|
@ -548,8 +548,8 @@ pub(crate) struct ReplayBufferStatus {
|
|||
|
||||
/// Response value for
|
||||
/// [`get_current_scene_collection`](crate::client::SceneCollections::get_current_scene_collection).
|
||||
#[serde(rename_all = "kebab-case")]
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[serde(rename_all = "kebab-case")]
|
||||
pub(crate) struct CurrentSceneCollection {
|
||||
/// Name of the currently active scene collection.
|
||||
pub sc_name: String,
|
||||
|
|
Loading…
Reference in a new issue