opening-hours-syntax 2.0.2

A parser for opening_hours fields in OpenStreetMap.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::Parser;

mod display;
mod normalize;
mod parser;
mod paving;

/// A parsure that asserts that no warning are emited.
#[rstest::fixture]
fn parser_no_warn() -> Parser {
    Parser::default().with_warning_handler(|warning| {
        panic!(
            "Received an unexpected warning while parsing {}: {warning}",
            warning.as_pair().get_input(),
        )
    })
}