Remove custom matches!() macro

This commit is contained in:
Dirkjan Ochtman 2023-05-08 13:41:04 +02:00
parent 64c3c2ba86
commit 1ab234fe5a
3 changed files with 0 additions and 14 deletions

View File

@ -513,15 +513,3 @@ pub use naive::__BenchYearFlags;
pub mod serde {
pub use super::datetime::serde::*;
}
/// MSRV 1.42
#[cfg(test)]
#[macro_export]
macro_rules! matches {
($expression:expr, $(|)? $( $pattern:pat )|+ $( if $guard: expr )? $(,)?) => {
match $expression {
$( $pattern )|+ $( if $guard )? => true,
_ => false
}
}
}

View File

@ -777,7 +777,6 @@ mod tests {
use super::super::timezone::Transition;
use super::super::{Error, TimeZone};
use super::{AlternateTime, LocalTimeType, RuleDay, TransitionRule};
use crate::matches;
#[test]
fn test_quoted() -> Result<(), Error> {

View File

@ -632,7 +632,6 @@ const SECONDS_PER_28_DAYS: i64 = SECONDS_PER_DAY * 28;
mod tests {
use super::super::Error;
use super::{LeapSecond, LocalTimeType, TimeZone, TimeZoneName, Transition, TransitionRule};
use crate::matches;
#[test]
fn test_no_dst() -> Result<(), Error> {