Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dead code #136

Merged
merged 1 commit into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/no_std_example/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions nutype_macros/src/float/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ impl TypeTrait for FloatDeriveTrait {
pub type FloatRawGuard<T> = RawGuard<SpannedFloatSanitizer<T>, SpannedFloatValidator<T>>;
pub type FloatGuard<T> = Guard<FloatSanitizer<T>, FloatValidator<T>>;

pub trait FloatType {
fn float_inner_type() -> FloatInnerType;
}
pub trait FloatType {}

macro_rules! define_float_inner_type {
($($tp:ty => $variant:ident),*) => {
Expand All @@ -88,9 +86,6 @@ macro_rules! define_float_inner_type {

$(
impl FloatType for $tp {
fn float_inner_type() -> FloatInnerType {
FloatInnerType::$variant
}
}
)*

Expand Down
7 changes: 1 addition & 6 deletions nutype_macros/src/integer/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ impl TypeTrait for IntegerDeriveTrait {
pub type IntegerRawGuard<T> = RawGuard<SpannedIntegerSanitizer<T>, SpannedIntegerValidator<T>>;
pub type IntegerGuard<T> = Guard<IntegerSanitizer<T>, IntegerValidator<T>>;

pub trait IntegerType {
fn integer_inner_type() -> IntegerInnerType;
}
pub trait IntegerType {}

macro_rules! define_integer_inner_type {
($($tp:ty => $variant:ident),*) => {
Expand All @@ -88,9 +86,6 @@ macro_rules! define_integer_inner_type {

$(
impl IntegerType for $tp {
fn integer_inner_type() -> IntegerInnerType {
IntegerInnerType::$variant
}
}
)*

Expand Down
Loading