Fix linter warnings from nightly clippy

This commit is contained in:
Dominik Nakamura 2021-03-21 14:44:39 +09:00
parent e1cf8f69e6
commit 16a685a727
No known key found for this signature in database
GPG key ID: E4C6A749B2491910
2 changed files with 8 additions and 8 deletions

View file

@ -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 {

View file

@ -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,