From ff90f96b2d837b719fadb7f630cfb709cc4122a5 Mon Sep 17 00:00:00 2001 From: Graham Esau Date: Sun, 27 Oct 2019 11:50:05 +0000 Subject: [PATCH] Remove JsonSchema impl for Infallible This isn't used in serde, and requires rust 1.34+ --- schemars/src/json_schema_impls/core.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/schemars/src/json_schema_impls/core.rs b/schemars/src/json_schema_impls/core.rs index f0bf60c..1734ddb 100644 --- a/schemars/src/json_schema_impls/core.rs +++ b/schemars/src/json_schema_impls/core.rs @@ -85,18 +85,6 @@ impl JsonSchema for std::marker::PhantomData { } } -impl JsonSchema for std::convert::Infallible { - no_ref_schema!(); - - fn schema_name() -> String { - "Never".to_owned() - } - - fn json_schema(gen: &mut SchemaGenerator) -> Schema { - gen.schema_for_none() - } -} - #[cfg(test)] mod tests { use super::*;