-
Notifications
You must be signed in to change notification settings - Fork 44
feat: update rust to 0.9.0 #984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
let mut options = GetOrCreateOptions { | ||
tags: Some(tags), | ||
..Default::default() | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The GetOrCreateOptions
struct has been refactored in this update and no longer contains a tags
field. This example needs to be updated to use the new API structure, which now uses key
instead of tags
. The correct approach would be:
let key = vec![
"general".to_string(),
];
let options = GetOrCreateOptions::default();
let room = client.get_or_create("chatRoom", key, options)?
.connect();
This matches the updated client API signature shown elsewhere in the changes.
let mut options = GetOrCreateOptions { | |
tags: Some(tags), | |
..Default::default() | |
}; | |
let key = vec![ | |
"general".to_string(), | |
]; | |
let options = GetOrCreateOptions::default(); | |
Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.
9e4ec66
to
7ca9225
Compare
749fb1f
to
af5e352
Compare
7ca9225
to
49f1a8b
Compare
749fb1f
to
af5e352
Compare
7ca9225
to
49f1a8b
Compare
49f1a8b
to
7ca9225
Compare
af5e352
to
749fb1f
Compare
Merge activity
|
No description provided.