From ede0bcf9ab0446cc43c081ca880a3ab0783870d6 Mon Sep 17 00:00:00 2001 From: kurotakazuki Date: Mon, 6 May 2024 23:51:31 +0900 Subject: [PATCH] refact: cargo clippy --- xml_schema_derive/src/xsd/element.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xml_schema_derive/src/xsd/element.rs b/xml_schema_derive/src/xsd/element.rs index 790872b..d3775de 100644 --- a/xml_schema_derive/src/xsd/element.rs +++ b/xml_schema_derive/src/xsd/element.rs @@ -297,9 +297,9 @@ mod tests { let implementation = element.get_field_implementation(&context, &None); - let expected = TokenStream::from_str(&format!( - r#"#[yaserde(rename = "OwnedType")] pub owned_type : xml_schema_types :: OwnedType ,"# - )) + let expected = TokenStream::from_str( + r#"#[yaserde(rename = "OwnedType")] pub owned_type : xml_schema_types :: OwnedType ,"#, + ) .unwrap(); assert_eq!(implementation.to_string(), expected.to_string()); @@ -318,9 +318,9 @@ mod tests { let implementation = element.get_field_implementation(&context, &None); - let expected = TokenStream::from_str(&format!( + let expected = TokenStream::from_str( r#"#[yaserde(rename = "OwnedType")] pub owned_type_list : Vec < xml_schema_types :: OwnedType > ,"# - )) + ) .unwrap(); assert_eq!(implementation.to_string(), expected.to_string());