summaryrefslogtreecommitdiffstats
path: root/src/ser.rs
AgeCommit message (Collapse)Author
2022-06-01Fix clippy: Derive Eq as wellMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-12-29Merge pull request #264 from danieleades/refactor/pedantic-lintsMatthias Beyer
Refactor/pedantic lints
2021-12-29de-glob importsDaniel Eades
2021-12-29silence/address unused code warningsDaniel Eades
2021-12-29Merge pull request #267 from danieleades/refactor/cast-losslessMatthias Beyer
use infallible integer conversions where available
2021-12-28use explicit imports for macrosDaniel Eades
2021-12-28use infallible integer conversions where availableDaniel Eades
2021-11-23rename try_into to try_deserialize to avoid confusionConrad Ludgate
2021-06-08Fix clippy: Do not borrow referenceMatthias Beyer
Reported from nightly clippy, this borrowing of a reference is uneccessary. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-05-08Modify tests to use both ConfigBuilder and ConfigRadosław Kot
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-12-07Remove automatic lowercaseRyan Leckey
2019-05-09Remove ValueWithKey structGuillem Nieto
While using this library, I end up having lifetime issues with `Config::get`. I've seen that current implementation forces the calleer to match `key` lifetime to the output of the function. My use case is, under some circumstances, return a suffixed version of the config key. Something similar to: ``` if some_condition == true { let key_name = format!("{}_suffix", key); self.config.get(&key_name) } else { self.config.get(key) } ``` This code is noy compiling for me due to conflicting lifetimes. To avoid this, I've started looking to the code and I've found that `key` needed this lifetime because of `ValueWithKey`. The purpouse of this struct seems to be add more information to the errors that are returned to the user. To mitigate this lifetime coupling I've: - Mapped the error on `Config::get` to include the originating key of the current error - Remove all the code related with `ValueWithKey`
2018-07-02Run rustfmt (nightly)Ryan Leckey
2018-04-08Add ConfigSerializerXX
2018-04-06Add config serialize abilityXX