Skip to content

Commit

Permalink
filesystem: fix warnings in rust 1.56
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tim-Zhang authored and jiangliu committed Nov 25, 2021
1 parent afc7b69 commit 0596a11
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/api/filesystem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ pub use fuse::SetattrValid;
pub use fuse::ROOT_ID;

#[cfg(feature = "async-io")]
#[doc(inline)]
mod async_io;
#[cfg(feature = "async-io")]
pub use async_io::{AsyncFileSystem, AsyncZeroCopyReader, AsyncZeroCopyWriter};
Expand Down

0 comments on commit 0596a11

Please sign in to comment.