satisfy clippy

This commit is contained in:
glyph 2022-08-11 12:40:28 +01:00
parent 168783a028
commit 79de076930
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ use crate::db::Post;
async fn init_sbot() -> Result<Sbot, String> {
// Define the port on which the go-sbot is running.
// Defaults to 8021 if the environment variable is not set.
let go_sbot_port = env::var("GO_SBOT_PORT").unwrap_or("8021".to_string());
let go_sbot_port = env::var("GO_SBOT_PORT").unwrap_or_else(|_| "8021".to_string());
let keystore = Keystore::GoSbot;
let ip_port = Some(format!("127.0.0.1:{}", go_sbot_port));