summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2022-06-01Fix clippy: Derive Eq as wellMatthias 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-04-10Merge pull request #306 from CfirTsabari/cfirtsabari/doesn-t-work-with-dot-101Matthias Beyer
fix: dot in config name
2022-04-10fix: dot in config nameCfirTsabari
Rust std `set_extension` is either add an extension if none exists, or edit the current one if such exists. This caused a mishandling when user is using a name with a dot, part of the name was treated as an extension, and be overwritten by the different format extensions. So manually *adding* a new dummy extension will cause the current code, to behave as expected, since it will always overwrite the new dummy extension and not part of the name.
2022-03-31Merge pull request #309 from matthiasbeyer/fix-no-feature-buildMatthias Beyer
Fix: If no features are enabled, this should still build
2022-03-31Fix: If no features are enabled, this should still buildMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-03-31Fixed type in ConfigBuilder docsbicarlsen
Fixed a simple type in the `ConfigBuilder` docs, `alaways` -> `always`
2022-03-24Merge pull request #298 from jaudiger/chore-keepPrefixMatthias Beyer
chore: add the possibility to keep the prefix from env var.
2022-03-22Add ConfigBuilder::set_override_option()Rafael Saraiva Figueiredo
This patch adds ConfigBuilder::set_override_option() to override a setting from an Option<_>. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-03-11chore: add the possibility to keep the prefix from env var.Jérémy Audiger
2022-02-28feat: env contains list of stringssimon-an
Signed-off-by: simon-an <26556185+simon-an@users.noreply.github.com>
2022-02-24add prefix separator supportConrad Ludgate
2022-01-29simplify some match blocksDaniel Eades
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-29Merge pull request #264 from danieleades/refactor/pedantic-lintsMatthias Beyer
Refactor/pedantic lints
2021-12-29remove needless pass by valueDaniel Eades
2021-12-29use implicit iter loopsDaniel Eades
2021-12-29de-glob importsDaniel Eades
2021-12-29use 'if-else' rather than 'match' for single matchesDaniel Eades
2021-12-29use 'Self' to refer to own typeDaniel Eades
2021-12-29silence/address unused code warningsDaniel Eades
2021-12-29Merge pull request #266 from danieleades/refactor/condense-bound-predicateMatthias Beyer
collapse repeated type bound
2021-12-29Merge pull request #267 from danieleades/refactor/cast-losslessMatthias Beyer
use infallible integer conversions where available
2021-12-29Merge pull request #265 from danieleades/refactor/redundant-closureMatthias Beyer
replace redundant closure with method
2021-12-28remove explicit 'extern crate' callsDaniel Eades
2021-12-28use explicit imports for macrosDaniel Eades
2021-12-28replace redundant closure with methodDaniel Eades
2021-12-28collapse repeated type boundDaniel Eades
2021-12-28use infallible integer conversions where availableDaniel 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-26Merge pull request #242 from ctron/feature/provide_env_1Matthias Beyer
feat: allow providing the environment for testing
2021-11-23Merge pull request #250 from conradludgate/pathdiffMatthias Beyer
chore: use pathdiff crate
2021-11-23Merge pull request #251 from conradludgate/value-deserializeMatthias Beyer
rename try_into to try_deserialize to avoid confusion
2021-11-23update tests not use deprecated methodsConrad Ludgate
2021-11-23rename try_into to try_deserialize to avoid confusionConrad Ludgate
2021-11-22feat: allow providing the environment for testingJens Reimann
closes #241 Co-authored-by: Conrad Ludgate <conradludgate@gmail.com>
2021-11-21chore: replace path_relative_from function with pathdiff crateConrad Ludgate
2021-11-21chore: some file read simplificationsConrad Ludgate
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 test for testing value typeMatthias Beyer
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-11-21chore: fix find_file tooConrad Ludgate
2021-11-21feat: allow for current_dir failureConrad Ludgate
2021-10-23Change FileExtensions (rename, make subtrait)Radosław Kot
2021-10-23Apply clippy lints and formatRadosław Kot
2021-10-23Change FileExtensions signatureRadosław Kot
2021-10-23Add documentation to file related typesRadosław Kot
2021-10-23Satisfy clippy's type_complexity lintRadosław Kot