matrix-sdk: Fix a clippy lint.

This commit is contained in:
Damir Jelić 2020-12-08 11:01:20 +01:00
parent 35247fac2a
commit 59917f45e3

View file

@ -841,7 +841,7 @@ impl Client {
since: Option<&str>,
server: Option<&ServerName>,
) -> Result<get_public_rooms::Response> {
let limit = limit.map(|n| UInt::from(n));
let limit = limit.map(UInt::from);
let request = assign!(get_public_rooms::Request::new(), {
limit,