summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/frontend/list.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/frontend/list.rs b/src/frontend/list.rs
index cf5a946..0ebd41b 100644
--- a/src/frontend/list.rs
+++ b/src/frontend/list.rs
@@ -23,17 +23,17 @@ impl Frontend for ListFrontend {
packages.iter().fold(Ok(()), |accu, package| {
accu.and_then(|_| {
- let status = if let Some(stat) = package.status() {
- format!("{}", stat)
+ let status: &String = if let Some(stat) = package.status() {
+ stat.deref() as &String
} else {
- String::from("No status")
+ &String::from("No status")
}; // not optimal, but works for now.
- let url = if let Some(url) = package.www() {
+ let url: &String = if let Some(url) = package.www() {
if let Some(url) = url.first() {
- format!("{}", url.deref())
+ url.deref() as &String
} else {
- String::from("")
+ &String::from("")
}
} else {
String::from("")