aboutsummaryrefslogtreecommitdiff
path: root/src/util/str.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-04-08 14:51:11 +0200
committerMartin Fischer <martin@push-f.com>2021-04-08 15:40:48 +0200
commit6a37a2432efda67aa681338251a0d47d6336f9e3 (patch)
treec29903a58c857297615f72ba3d2367cefcbcdd47 /src/util/str.rs
parente0bef0105e0cc64bb610889b6921fd94897431d9 (diff)
drop mac dependency
Diffstat (limited to 'src/util/str.rs')
-rw-r--r--src/util/str.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/util/str.rs b/src/util/str.rs
index c0f89f0..84604bc 100644
--- a/src/util/str.rs
+++ b/src/util/str.rs
@@ -7,8 +7,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-use mac::{_tt_as_expr_hack, matches};
-
/// If `c` is an ASCII letter, return the corresponding lowercase
/// letter, otherwise None.
pub fn lower_ascii_letter(c: char) -> Option<char> {
@@ -28,7 +26,6 @@ pub fn is_ascii_alnum(c: char) -> bool {
#[allow(non_snake_case)]
mod test {
use super::{is_ascii_alnum, lower_ascii_letter};
- use mac::test_eq;
test_eq!(lower_letter_a_is_a, lower_ascii_letter('a'), Some('a'));
test_eq!(lower_letter_A_is_a, lower_ascii_letter('A'), Some('a'));