nicer string handling

pull/722/head
Felix Ableitner 5 years ago
parent 4f116dc758
commit 10976bd656

@ -42,10 +42,10 @@ pub fn node_info() -> Result<Json<NodeInfo>, Error> {
Err(_e) => return Err(_e)?, Err(_e) => return Err(_e)?,
}; };
let json = Json(NodeInfo { let json = Json(NodeInfo {
version: "2.0".to_string(), version: String::from("2.0"),
software: Software { software: Software {
name: "lemmy".to_string(), name: String::from("lemmy"),
version: version::VERSION.to_string(), version: String::from(version::VERSION),
}, },
protocols: [], // TODO: put 'activitypub' once that is implemented protocols: [], // TODO: put 'activitypub' once that is implemented
usage: Usage { usage: Usage {

Loading…
Cancel
Save