From fb274df81f4343773fe7d7c6fe68c88e63313692 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 15 Nov 2019 16:08:14 +0100 Subject: [PATCH] nicer string handling --- server/src/nodeinfo.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {