Skip to content

Commit 06761ed

Browse files
committed
Fix
1 parent 9e4064b commit 06761ed

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

src/printer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use std::ops::Add;
1616

1717
#[derive(Clone, Debug)]
18+
#[allow(dead_code)]
1819
pub struct Error;
1920

2021
pub trait Printer<Context> {

src/rust/model_gen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

src/rust/printer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ impl RustContext {
4242
}
4343
}
4444

45+
#[allow(clippy::to_string_trait_impl)]
4546
impl ToString for RustContext {
4647
#[allow(unstable_name_collisions)]
4748
fn to_string(&self) -> String {

src/rust/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ pub enum IntFormat {
4242
I64,
4343
}
4444

45+
#[allow(clippy::to_string_trait_impl)]
4546
impl ToString for IntFormat {
4647
fn to_string(&self) -> String {
4748
match self {

0 commit comments

Comments
 (0)