Skip to content

Commit

Permalink
Metainfo refactoring
Browse files Browse the repository at this point in the history
- Combine test Metainfo values into a small number of globally available
  values.
- Serialize update URLs as `URL` insted of `String`.
- Add additional `show` tests

type: reform
  • Loading branch information
casey committed May 4, 2020
1 parent f4f7a69 commit 213624c
Show file tree
Hide file tree
Showing 6 changed files with 466 additions and 478 deletions.
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ strum_macros = "0.18.0"
syn = "1.0.14"
tempfile = "3.0.0"
unicode-width = "0.1.0"
url = "2.1.1"

[dependencies.bendy]
version = "0.3.0"
Expand All @@ -57,6 +56,10 @@ features = ["derive"]
version = "0.3.0"
features = ["default", "wrap_help"]

[dependencies.url]
version = "2.1.1"
features = ["serde"]

[dev-dependencies]
claim = "0.3.1"
temptree = "0.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub(crate) struct Info {
with = "unwrap_or_skip",
rename = "update-url"
)]
pub(crate) update_url: Option<String>,
pub(crate) update_url: Option<Url>,
}

impl Info {
Expand Down
Loading

0 comments on commit 213624c

Please sign in to comment.