Skip to content

Commit

Permalink
Upgrade 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lepton committed Feb 22, 2024
1 parent d5253c8 commit 3d34299
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Rust

on:
push:
branches: [main, Try]
branches: [main]
tags:
- v*
pull_request:
branches: [main]

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name = "cfg-rs"
readme = 'README.md'
repository = 'https://github.com/leptonyu/cfg-rs'
rust-version = "1.64.0"
version = "0.3.0"
version = "0.3.1"

[package.metadata.docs.rs]
all-features = true
Expand Down
2 changes: 1 addition & 1 deletion src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ impl<V: FromValue> FromConfig for V {
match value {
None => Err(context.not_found()),
Some(ConfigValue::Str(v)) if v.is_empty() => Self::empty_value(context),
Some(ConfigValue::StrRef(v)) if v.is_empty() => Self::empty_value(context),
Some(ConfigValue::StrRef("")) => Self::empty_value(context),
Some(val) => V::from_value(context, val),
}
}
Expand Down

0 comments on commit 3d34299

Please sign in to comment.