Upgrade ruma
This commit is contained in:
parent
1c6a67d864
commit
38fec7f2b3
2 changed files with 6 additions and 4 deletions
|
@ -826,7 +826,7 @@ impl Client {
|
|||
/// let mut client = Client::new(homeserver).unwrap();
|
||||
///
|
||||
/// let generic_search_term = Some("matrix-rust-sdk");
|
||||
/// let filter = Some(assign!(Filter::new(), { generic_search_term }));
|
||||
/// let filter = assign!(Filter::new(), { generic_search_term });
|
||||
/// let request = assign!(PublicRoomsFilterRequest::new(), { filter });
|
||||
///
|
||||
/// client.public_rooms_filtered(request).await;
|
||||
|
@ -1292,7 +1292,9 @@ impl Client {
|
|||
let mut data = Vec::new();
|
||||
reader.read_to_end(&mut data)?;
|
||||
|
||||
let request = create_content::Request::new(content_type.essence_str(), data);
|
||||
let request = assign!(create_content::Request::new(data), {
|
||||
content_type: Some(content_type.essence_str()),
|
||||
});
|
||||
|
||||
self.http_client.upload(request).await
|
||||
}
|
||||
|
@ -2325,7 +2327,7 @@ mod test {
|
|||
.create();
|
||||
|
||||
let generic_search_term = Some("cheese");
|
||||
let filter = Some(assign!(Filter::new(), { generic_search_term }));
|
||||
let filter = assign!(Filter::new(), { generic_search_term });
|
||||
let request = assign!(PublicRoomsFilterRequest::new(), { filter });
|
||||
|
||||
let get_public_rooms_filtered::Response { chunk, .. } =
|
||||
|
|
|
@ -21,7 +21,7 @@ js_int = "0.1.9"
|
|||
[dependencies.ruma]
|
||||
version = "0.0.1"
|
||||
git = "https://github.com/ruma/ruma"
|
||||
rev = "3869d75837b7aab60eef58fc834e498317d1e4a4"
|
||||
rev = "50eb700571480d1440e15a387d10f98be8abab59"
|
||||
features = ["client-api", "unstable-pre-spec", "unstable-exhaustive-types"]
|
||||
|
||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||||
|
|
Loading…
Reference in a new issue