Skip to content

Commit 2d687bc

Browse files
committed
fix
1 parent 225e416 commit 2d687bc

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

src/printer.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,6 @@ impl<Context: PrintContext> Printer<Context> for String {
7575
}
7676
}
7777

78-
pub struct UnitPrinter;
79-
80-
impl<Context> Printer<Context> for UnitPrinter {
81-
fn print(&self, _ctx: &mut Context) {}
82-
}
83-
8478
pub struct IndentPrinter;
8579

8680
impl<C: IndentContext + PrintContext> Printer<C> for IndentPrinter {
@@ -136,14 +130,6 @@ impl<Context> TreePrinter<Context> {
136130
}
137131
}
138132

139-
pub struct TreePrinterPrinter<Context>(TreePrinter<Context>);
140-
141-
impl<Context> Printer<Context> for TreePrinterPrinter<Context> {
142-
fn print(&self, ctx: &mut Context) {
143-
self.0.print(ctx)
144-
}
145-
}
146-
147133
impl<Context, P> Add<Option<P>> for TreePrinter<Context>
148134
where
149135
TreePrinter<Context>: Add<P, Output = TreePrinter<Context>>,

src/rust/client_gen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use crate::rust::lib_gen::{Module, ModuleDef, ModuleName};
1717
use crate::rust::model_gen::RefCache;
1818
use crate::rust::printer::*;
1919
use crate::rust::types::{
20-
ref_or_box_schema_type, ref_or_schema_type, DataType, IntFormat, ModelType, RustPrinter,
20+
ref_or_box_schema_type, ref_or_schema_type, DataType, ModelType, RustPrinter,
2121
RustResult,
2222
};
2323
use crate::{Error, Result};

0 commit comments

Comments
 (0)