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

Fix new rust fmt and cargo clippy failures on main with the latest rust #365

Merged
merged 3 commits into from
Dec 11, 2024

Conversation

schneems
Copy link
Contributor

@schneems schneems commented Dec 11, 2024

Details are in commit messages. I suggest reviewing each commit.

Getting this merged is a blocker for merging #364.

This suggestion was hard to apply so I moved the code:

```
57 |   fn fetch_secret_key_base_from_store(store: &Option<Store>) -> (String, Store) {
   |   ^                                          -------------- help: change this to: `Option<&Store>`
   |  _|
   | |
58 | |     let mut store = store.clone().unwrap_or_default();
59 | |     let default_secret_key_base = store
60 | |         .metadata
...  |
72 | |     (default_secret_key_base, store)
73 | | }
   | |_^
```

I also added an integration test to assert that the SECRET_KEY_BASE is preserved
@schneems schneems marked this pull request as ready for review December 11, 2024 19:24
@schneems schneems requested a review from a team as a code owner December 11, 2024 19:24
@schneems schneems enabled auto-merge (squash) December 11, 2024 19:24
@schneems schneems merged commit a3f5834 into main Dec 11, 2024
6 of 7 checks passed
@schneems schneems deleted the schneems/cargo-fmt-clippy-dec-11 branch December 11, 2024 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants