Fix new clippy error about camel case naming

This commit is contained in:
Dominik Nakamura 2021-03-27 11:21:07 +09:00
parent d74cd63244
commit 33c5fe945a
No known key found for this signature in database
GPG Key ID: E4C6A749B2491910
2 changed files with 6 additions and 4 deletions

View File

@ -189,7 +189,7 @@ impl<'a> Sources<'a> {
source: &str,
) -> Result<responses::TextGdiPlusProperties> {
self.client
.send_message(RequestType::GetTextGDIPlusProperties { source })
.send_message(RequestType::GetTextGdiPlusProperties { source })
.await
}
@ -199,7 +199,7 @@ impl<'a> Sources<'a> {
properties: TextGdiPlusProperties<'_>,
) -> Result<()> {
self.client
.send_message(RequestType::SetTextGDIPlusProperties(Box::new(properties)))
.send_message(RequestType::SetTextGdiPlusProperties(Box::new(properties)))
.await
}

View File

@ -185,11 +185,13 @@ pub(crate) enum RequestType<'a> {
source_type: Option<&'a str>,
},
SetSourceSettings(SourceSettings<'a>),
GetTextGDIPlusProperties {
#[serde(rename = "GetTextGDIPlusProperties")]
GetTextGdiPlusProperties {
/// Source name.
source: &'a str,
},
SetTextGDIPlusProperties(Box<TextGdiPlusProperties<'a>>),
#[serde(rename = "SetTextGDIPlusProperties")]
SetTextGdiPlusProperties(Box<TextGdiPlusProperties<'a>>),
GetTextFreetype2Properties {
/// Source name.
source: &'a str,