summaryrefslogtreecommitdiffstats
path: root/src/error.rs
AgeCommit message (Collapse)Author
2022-06-19Fix clippy: use first() instead of get(0)Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-05-08errors: clarify names of integer typesMartin von Zweigbergk
I got this error message: ``` invalid type: integer 64 bit `5`, expected an array ``` It took me a while to figure out that it wasn't talking about bit number 5 of the number 64, but the 64-bit number `5`. I think it will be clearer like this: ``` invalid type: 64-bit integer `5`, expected an array ``` So that's what this patch implements.
2022-01-29use 'Self' to refer to own typeDaniel Eades
2022-01-11Fix clippy: Replace unwrap_or_else() with unwrap_or_default()Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-12-29remove needless pass by valueDaniel Eades
2021-12-28Add #[must_use] annotationsMatthias Beyer
Clippy nightly fails the checks because it wants us to have a `#[must_use]` annotation on functions that return `Self`. So we add these annotations with this patch. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-11-21Add support for unsigned integersMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-11-21Remove support for integers smaller than i64Matthias Beyer
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>
2021-11-21Add support for different sized integersMatthias Beyer
This also enables support for 128 bit integers. Nothing is tested, though. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-05-15Support format json5up9cloud
2021-05-07Update to rust 2018 editionkpcyrd
2021-04-09Ensure order in the galaxy... I mean the importsMatthias Beyer
This patch sorts the imports: 1. std imports 2. external crate imports 3. own module imports In three blocks, each alphabetically (with is also enforced by rustfmt). As well as it prefixes the imports of own modules with crate:: This is just a quality-of-life patch :-) Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-04-09Remove unused importsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-10-01Run cargo-fmtMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-14General upgrade for clippy fix and remove of deprecated methods for errorsFederico Pasqua
2019-06-27port to nom 5Geoffroy Couprie
2018-12-30Tracking a path where an error happens during deserializationMichal 'vorner' Vaner
Related to #83, but doesn't solve that specific problem :-(. That specific error message ("missing field") comes from somewhere else than this library.
2018-07-02Run rustfmt (nightly)Ryan Leckey
2018-04-06Add config serialize abilityXX
2017-07-30Remove ConfigResult; close #36Ryan Leckey
2017-06-23Make boxed errors Send + SyncJascha
2017-06-13:shirt: Fix clippy warningsRyan Leckey
2017-06-03More context for errors (value key if possible)Ryan Leckey
2017-06-02Started playing with error testsRyan Leckey
2017-06-01Move things around and get some tests in placeRyan Leckey