Skip to content

Commit

Permalink
schema: add Types::into_strict method
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Mar 26, 2024
1 parent f17c2a2 commit 94f8691
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/schema/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ impl Types {
Types::Strict(ts) => ts,
}
}

pub fn into_strict(self) -> TypeSystem {
match self {
Types::Strict(ts) => ts,
}
}
}

#[cfg(feature = "serde")]
Expand Down

0 comments on commit 94f8691

Please sign in to comment.