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

filesystem: fix warnings in rust 1.56 #45

Merged
merged 1 commit into from
Nov 25, 2021

Conversation

bergwolf
Copy link
Contributor

Got:
warning: this attribute can only be applied to a use item
--> src/api/filesystem/mod.rs:25:7
|
25 | #[doc(inline)]
| ^^^^^^ only applicable on use items
26 | mod async_io;
| ------------- not a use item
|
= note: #[warn(invalid_doc_attributes)] on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #82730 rust-lang/rust#82730
= note: read https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#docno_inlinedocinline for more information

This commit would fix this problem.

Signed-off-by: Tim Zhang tim@hyper.sh

Got:
warning: this attribute can only be applied to a `use` item
  --> src/api/filesystem/mod.rs:25:7
   |
25 | #[doc(inline)]
   |       ^^^^^^ only applicable on `use` items
26 | mod async_io;
   | ------------- not a `use` item
   |
   = note: `#[warn(invalid_doc_attributes)]` on by default
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #82730 <rust-lang/rust#82730>
   = note: read https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#docno_inlinedocinline for more information

This commit would fix this problem.

Signed-off-by: Tim Zhang <tim@hyper.sh>
@jiangliu jiangliu merged commit 0596a11 into cloud-hypervisor:master Nov 25, 2021
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.

3 participants