Commit 2090c7fe authored by Scott Abbey's avatar Scott Abbey

Remove Option from pre and build fields

parent 3a370855
......@@ -45,8 +45,8 @@ pub struct Version {
pub major: u64,
pub minor: u64,
pub patch: u64,
pub pre: Option<Vec<Identifier>>,
pub build: Option<Vec<Identifier>>,
pub pre: Vec<Identifier>,
pub build: Vec<Identifier>,
......@@ -63,9 +63,10 @@ pub fn parse(version: &str) -> Result<Version, String> {
None => return Err(From::from("Version did not parse properly.")),
let pre ="pre").map(common::parse_meta);
let build ="build").map(common::parse_meta);
let pre ="pre").map(common::parse_meta).unwrap_or(vec![]);
let build ="build").map(common::parse_meta).unwrap_or(vec![]);
Ok(Version {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment