Skip to content

Commit 8b209cf

Browse files
committed
Add impl to write new schema format
1 parent 4fbc80b commit 8b209cf

File tree

6 files changed

+308
-115
lines changed

6 files changed

+308
-115
lines changed

packages/cw-schema/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ pub trait Schemaifier {
204204
fn visit_schema(visitor: &mut SchemaVisitor) -> DefinitionReference;
205205
}
206206

207-
pub fn schema_of<T: Schemaifier>() -> Schema {
207+
pub fn schema_of<T: Schemaifier + ?Sized>() -> Schema {
208208
let mut visitor = SchemaVisitor::default();
209209
Schema::V1(SchemaV1 {
210210
root: T::visit_schema(&mut visitor),

0 commit comments

Comments
 (0)