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

Derive Default for CachePolicy (and update Rust CI version) #112

Merged
merged 2 commits into from
Apr 9, 2023

Conversation

matthiasgoergens
Copy link
Contributor

@matthiasgoergens matthiasgoergens commented Mar 23, 2023

Thanks to cargo clippy for the suggestion.

See
https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls for background.

Edit: we also need to update our CI's version of Rust, as the necessary feature has only been stabilized recently.

The ci of docker-smoke gets errors otherwise:

````
error[E0658]: deriving `Default` on enums is experimental
   --> src/passthrough/mod.rs:345:17
    |
345 | #[derive(Debug, Default, Clone, Eq, PartialEq)]
    |                 ^^^^^^^
    |
    = note: see issue #86985 <rust-lang/rust#86985> for more information
    = note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0658`.
error: could not compile `fuse-backend-rs` due to previous error
make: *** [Makefile:4: build] Error 101
make: *** [Makefile:44: docker-smoke] Error 2
```
@matthiasgoergens matthiasgoergens changed the title Derive Default for CachePolicy Derive Default for CachePolicy (and update Rust CI version) Apr 5, 2023
@jiangliu jiangliu merged commit b070483 into cloud-hypervisor:master Apr 9, 2023
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