From a9eea3f4e82a74e51dcfb6b1bb1dfa808cb8d9b1 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 29 Apr 2021 01:17:33 +0100 Subject: [PATCH] otter(1): Provide SpecRaw Not used yet. Signed-off-by: Ian Jackson --- src/bin/otter.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/bin/otter.rs b/src/bin/otter.rs index 7f7522d2..91cae8bb 100644 --- a/src/bin/otter.rs +++ b/src/bin/otter.rs @@ -575,6 +575,16 @@ impl SpecParse for SpecParseToml { } } impl SpecParseToml { pub fn new() -> Self { Self(default()) } } +#[allow(dead_code)] +struct SpecRaw(pub PhantomData); +impl SpecParse for SpecRaw { + type T = String; + type S = T; + #[throws(AE)] + fn parse(buf: String) -> String { buf } +} +#[allow(dead_code)] +impl SpecRaw { pub fn new() -> Self { Self(default()) } } #[throws(AE)] fn read_spec(ma: &MainOpts, specname: &str, _: P) -> P::T -- 2.30.2