-
Notifications
You must be signed in to change notification settings - Fork 240
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
Use Nightly Clippy + bug fixes #355
Conversation
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.
Mostly looks good, two things seem to be a bit fishy?
@@ -87,7 +87,9 @@ pub struct BaseClient { | |||
olm: Arc<Mutex<Option<OlmMachine>>>, | |||
#[cfg(feature = "encryption")] | |||
cryptostore: Arc<Mutex<Option<Box<dyn CryptoStore>>>>, | |||
#[cfg(feature = "encryption")] |
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.
Is this right? The store_path
is used for the sled state store as well, which can be enabled without having encryption
enabled.
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.
I thought I checked all usages. I'll have another look.
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.
I checked: With the sled_state_store
feature, only config.store_path
is used (which I did not touch), not client.store_path
.
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.
Oh sorry, I seem to have confused those two.
@@ -7,6 +7,7 @@ use matrix_sdk::{ | |||
use url::Url; | |||
|
|||
#[derive(Debug)] | |||
#[allow(dead_code)] |
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.
Why is this dead if it's clearly used?
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.
It's written, but never read except for through Debug
, which Nightly rustc no longer considers as a "real" use.
No description provided.