summaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-03-18 13:22:03 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-11-21 12:20:21 +0100
commit9b187e655f25f7386be4b96a707dfb3867ff309b (patch)
treed6a15a88bcc8d0ecba5167d41165cf0d7a777961 /src/error.rs
parent3c591e3ea2a79bd64ff2cf28e9f9e37cceec9a18 (diff)
Remove support for integers smaller than i64
All our backend crates do not support integers smaller than i64, so there's no point in supporting them either. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/error.rs b/src/error.rs
index 6751e05..db5813e 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -8,9 +8,6 @@ use serde::ser;
#[derive(Debug)]
pub enum Unexpected {
Bool(bool),
- I8(i8),
- I16(i16),
- I32(i32),
I64(i64),
I128(i128),
Float(f64),
@@ -24,9 +21,6 @@ impl fmt::Display for Unexpected {
fn fmt(&self, f: &mut fmt::Formatter) -> result::Result<(), fmt::Error> {
match *self {
Unexpected::Bool(b) => write!(f, "boolean `{}`", b),
- Unexpected::I8(i) => write!(f, "integer 8 bit `{}`", i),
- Unexpected::I16(i) => write!(f, "integer 16 bit `{}`", i),
- Unexpected::I32(i) => write!(f, "integer 32 bit `{}`", i),
Unexpected::I64(i) => write!(f, "integer 64 bit `{}`", i),
Unexpected::I128(i) => write!(f, "integer 128 bit `{}`", i),
Unexpected::Float(v) => write!(f, "floating point `{}`", v),