Skip to content

Commit b334d20

Browse files
authored
Merge pull request #136 from greyblake/remove-dead-code-fix-clippy
Remove dead code
2 parents 3fce8c6 + 06bc8e0 commit b334d20

File tree

4 files changed

+6
-16
lines changed

4 files changed

+6
-16
lines changed

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/no_std_example/Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nutype_macros/src/float/models.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ impl TypeTrait for FloatDeriveTrait {
7575
pub type FloatRawGuard<T> = RawGuard<SpannedFloatSanitizer<T>, SpannedFloatValidator<T>>;
7676
pub type FloatGuard<T> = Guard<FloatSanitizer<T>, FloatValidator<T>>;
7777

78-
pub trait FloatType {
79-
fn float_inner_type() -> FloatInnerType;
80-
}
78+
pub trait FloatType {}
8179

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

8987
$(
9088
impl FloatType for $tp {
91-
fn float_inner_type() -> FloatInnerType {
92-
FloatInnerType::$variant
93-
}
9489
}
9590
)*
9691

nutype_macros/src/integer/models.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ impl TypeTrait for IntegerDeriveTrait {
7575
pub type IntegerRawGuard<T> = RawGuard<SpannedIntegerSanitizer<T>, SpannedIntegerValidator<T>>;
7676
pub type IntegerGuard<T> = Guard<IntegerSanitizer<T>, IntegerValidator<T>>;
7777

78-
pub trait IntegerType {
79-
fn integer_inner_type() -> IntegerInnerType;
80-
}
78+
pub trait IntegerType {}
8179

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

8987
$(
9088
impl IntegerType for $tp {
91-
fn integer_inner_type() -> IntegerInnerType {
92-
IntegerInnerType::$variant
93-
}
9489
}
9590
)*
9691

0 commit comments

Comments
 (0)