mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-23 12:51:18 +00:00
nicer string handling
This commit is contained in:
parent
45671b555e
commit
fb274df81f
1 changed files with 3 additions and 3 deletions
|
@ -42,10 +42,10 @@ pub fn node_info() -> Result<Json<NodeInfo>, 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 {
|
||||
|
|
Loading…
Reference in a new issue