Use struct init shorthand
This commit is contained in:
@@ -49,8 +49,8 @@ pub async fn turn_server_route(
|
|||||||
};
|
};
|
||||||
|
|
||||||
Ok(get_turn_server_info::Response {
|
Ok(get_turn_server_info::Response {
|
||||||
username: username,
|
username,
|
||||||
password: password,
|
password,
|
||||||
uris: db.globals.turn_uris().to_vec(),
|
uris: db.globals.turn_uris().to_vec(),
|
||||||
ttl: Duration::from_secs(db.globals.turn_ttl()),
|
ttl: Duration::from_secs(db.globals.turn_ttl()),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user