Upgrade ruma

master
Jonas Platte 2020-10-18 02:01:39 +02:00
parent e737200fbe
commit 0682292b91
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
2 changed files with 6 additions and 4 deletions

View File

@ -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, .. } =

View File

@ -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]