Skip to content

Commit

Permalink
Merge pull request #136 from greyblake/remove-dead-code-fix-clippy
Browse files Browse the repository at this point in the history
Remove dead code
  • Loading branch information
greyblake committed May 31, 2024
2 parents 3fce8c6 + 06bc8e0 commit b334d20
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
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

0 comments on commit b334d20

Please sign in to comment.