We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe8802a commit 07e68d2Copy full SHA for 07e68d2
confik/CHANGELOG.md
@@ -2,6 +2,7 @@
2
3
## Unreleased
4
5
+- Parsing of database kind is now case-insensitive.
6
- Minimum supported Rust version (MSRV) is now 1.67 due to `toml_edit` dependency.
7
8
## 0.11.0
confik/src/common.rs
@@ -16,9 +16,9 @@ impl str::FromStr for DatabaseKind {
16
type Err = MissingValue;
17
18
fn from_str(input: &str) -> Result<Self, Self::Err> {
19
- match input {
20
- "mysql" => Ok(Self::Mysql),
21
- "postgres" => Ok(Self::Postgres),
+ match () {
+ _ if input.eq_ignore_ascii_case("mysql") => Ok(Self::Mysql),
+ _ if input.eq_ignore_ascii_case("postgres") => Ok(Self::Postgres),
22
_ => Err(Self::Err::default()),
23
}
24
0 commit comments