matrix-sdk: Don't use try_from for the u32 -> UInt conversion.
This commit is contained in:
parent
ce4d53a88c
commit
50bd408d48
1 changed files with 1 additions and 1 deletions
|
@ -792,7 +792,7 @@ impl Client {
|
|||
since: Option<&str>,
|
||||
server: Option<&ServerName>,
|
||||
) -> Result<get_public_rooms::Response> {
|
||||
let limit = limit.map(|n| UInt::try_from(n).ok()).flatten();
|
||||
let limit = limit.map(|n| UInt::from(n));
|
||||
|
||||
let request = assign!(get_public_rooms::Request::new(), {
|
||||
limit,
|
||||
|
|
Loading…
Reference in a new issue