Skip to content

Commit 09eba8a

Browse files
committed
Remove unused code.
1 parent 19866ba commit 09eba8a

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/type_regex.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::static_str::StaticStr;
66

77
#[doc(hidden)]
88
pub mod import {
9-
pub use std::{fmt, marker::PhantomData, sync::LazyLock};
9+
pub use std::{marker::PhantomData, sync::LazyLock};
1010
}
1111

1212
/// Represents static regular expressions (as returned in [`get`] of [`TypeRegex`]).
@@ -34,7 +34,7 @@ pub const INVALID: StaticStr = "invalid regex";
3434
/// Is equivalent to:
3535
///
3636
/// ```
37-
/// use std::{fmt, marker::PhantomData, sync::LazyLock};
37+
/// use std::{marker::PhantomData, sync::LazyLock};
3838
///
3939
/// use refinement_types::{Regex, StaticRegex, TypeRegex};
4040
///
@@ -73,15 +73,5 @@ macro_rules! type_regex {
7373
LazyLock::force(&REGEX)
7474
}
7575
}
76-
77-
impl $crate::type_regex::import::fmt::Display for $name {
78-
fn fmt(
79-
&self, formatter: &mut $crate::type_regex::import::fmt::Formatter<'_>
80-
) -> $crate::type_regex::import::fmt::Result {
81-
use $crate::type_regex::TypeRegex;
82-
83-
Self::get().fmt(formatter)
84-
}
85-
}
8676
};
8777
}

0 commit comments

Comments
 (0)