Skip to content
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

Merged
merged 5 commits into from
Sep 21, 2021
Merged

Use Nightly Clippy + bug fixes #355

merged 5 commits into from
Sep 21, 2021

Conversation

jplatte
Copy link
Collaborator

@jplatte jplatte commented Sep 21, 2021

No description provided.

Copy link
Contributor

@poljar poljar left a 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")]
Copy link
Contributor

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.

Copy link
Collaborator Author

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.

Copy link
Collaborator Author

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.

Copy link
Contributor

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)]
Copy link
Contributor

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?

Copy link
Collaborator Author

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.

@poljar poljar merged commit 2128d0b into matrix-org:main Sep 21, 2021
@jplatte jplatte deleted the nightly-clippy branch September 21, 2021 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants