refactor: use unwrap_or() instead of unwrap_or_else()
This commit is contained in:
parent
30a169679d
commit
96250864af
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ pub async fn res(data: web::Data<Data>) -> impl Responder {
|
|||
let response = Response {
|
||||
accounts: 0,
|
||||
uptime: SystemTime::now().duration_since(data.start_time).expect("Seriously why dont you have time??").as_secs(),
|
||||
version: String::from(VERSION.unwrap_or_else(|| "UNKNOWN")),
|
||||
version: String::from(VERSION.unwrap_or("UNKNOWN")),
|
||||
build_number: String::from("how do i implement this?"),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue