From: Felix Ableitner Date: Fri, 15 Nov 2019 15:08:14 +0000 (+0100) Subject: nicer string handling X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%24%7B%60data:application/%22https:/hacktivis.me/%7Bthis.captchaPngSrc%28%29%7D?a=commitdiff_plain;h=10976bd6564727a6f59b4587e451cc4afd057a76;p=lemmy.git nicer string handling --- diff --git a/server/src/nodeinfo.rs b/server/src/nodeinfo.rs index 6790c042..a406e536 100644 --- a/server/src/nodeinfo.rs +++ b/server/src/nodeinfo.rs @@ -42,10 +42,10 @@ pub fn node_info() -> Result, Error> { Err(_e) => return Err(_e)?, }; let json = Json(NodeInfo { - version: "2.0".to_string(), + version: String::from("2.0"), software: Software { - name: "lemmy".to_string(), - version: version::VERSION.to_string(), + name: String::from("lemmy"), + version: String::from(version::VERSION), }, protocols: [], // TODO: put 'activitypub' once that is implemented usage: Usage {