Make description optional in AUR queries
This commit is contained in:
parent
9d91609b70
commit
045de7ad32
|
@ -40,7 +40,7 @@ struct Package {
|
|||
#[serde(rename = "Version")]
|
||||
version: String,
|
||||
#[serde(rename = "Description")]
|
||||
description: String,
|
||||
description: Option<String>,
|
||||
#[serde(rename = "URL")]
|
||||
url: Option<String>,
|
||||
#[serde(rename = "NumVotes")]
|
||||
|
@ -57,8 +57,8 @@ impl fmt::Display for Package {
|
|||
self.name,
|
||||
self.version,
|
||||
self.votes,
|
||||
self.description,
|
||||
self.url.clone().unwrap_or(String::from("none"))
|
||||
self.description.clone().unwrap_or(String::from("none")),
|
||||
self.url.clone().unwrap_or(String::from("none")),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user