File tree Expand file tree Collapse file tree 4 files changed +5
-2
lines changed
Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1515use std:: ops:: Add ;
1616
1717#[ derive( Clone , Debug ) ]
18+ #[ allow( dead_code) ]
1819pub struct Error ;
1920
2021pub trait Printer < Context > {
Original file line number Diff line number Diff line change @@ -317,12 +317,12 @@ fn extract_enum_case(
317317 data_type : ref_type_name ( reference, ref_cache) ?,
318318 } )
319319 } else {
320- Err ( Error :: unimplemented ( & format ! (
320+ Err ( Error :: unimplemented ( format ! (
321321 "Can't find model type reference in enum case schema {schema_name}." ,
322322 ) ) )
323323 }
324324 }
325- _ => Err ( Error :: unimplemented ( & format ! (
325+ _ => Err ( Error :: unimplemented ( format ! (
326326 "allOf schema expected for enum case in {schema_name}"
327327 ) ) ) ,
328328 }
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ impl RustContext {
4242 }
4343}
4444
45+ #[ allow( clippy:: to_string_trait_impl) ]
4546impl ToString for RustContext {
4647 #[ allow( unstable_name_collisions) ]
4748 fn to_string ( & self ) -> String {
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ pub enum IntFormat {
4242 I64 ,
4343}
4444
45+ #[ allow( clippy:: to_string_trait_impl) ]
4546impl ToString for IntFormat {
4647 fn to_string ( & self ) -> String {
4748 match self {
You can’t perform that action at this time.
0 commit comments