Remove yr and mon (#3262)

* Remove `yr` and `mon`

* Remove usage of mon in test

* Fix test
This commit is contained in:
Mohammed Anas
2021-04-04 18:19:33 +00:00
committed by GitHub
parent 00acf22f5f
commit e5621dea58
6 changed files with 7 additions and 35 deletions

View File

@ -352,8 +352,6 @@ fn parse_unit(lite_arg: &Spanned<String>) -> (SpannedExpression, Option<ParseErr
(Unit::Hour, "HR", Some((Unit::Minute, 60))),
(Unit::Day, "DAY", Some((Unit::Minute, 1440))),
(Unit::Week, "WK", Some((Unit::Day, 7))),
(Unit::Month, "MON", Some((Unit::Day, 30))),
(Unit::Year, "YR", Some((Unit::Day, 365))),
];
if let Some(unit) = unit_groups
.iter()