mirror of
https://github.com/chronotope/chrono.git
synced 2025-10-02 07:21:41 +00:00
Remove custom matches!() macro
This commit is contained in:
parent
64c3c2ba86
commit
1ab234fe5a
12
src/lib.rs
12
src/lib.rs
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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> {
|
||||
|
@ -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> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user