Skip to content

Commit bcdfa44

Browse files
committed
try pass CI
1 parent 1e31e5e commit bcdfa44

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

monoio/src/lib.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,11 @@ pub use {builder::FusionDriver, runtime::FusionRuntime};
5656
/// Basic usage
5757
///
5858
/// ```no_run
59-
/// use monoio::fs::File;
60-
///
59+
/// #[cfg(not(all(target_os = "linux", feature = "iouring")))]
6160
/// fn main() -> Result<(), Box<dyn std::error::Error>> {
6261
/// monoio::start::<monoio::LegacyDriver, _>(async {
6362
/// // Open a file
64-
/// let file = File::open("hello.txt").await?;
63+
/// let file = monoio::fs::File::open("hello.txt").await?;
6564
///
6665
/// let buf = vec![0; 4096];
6766
/// // Read some data, the buffer is passed by ownership and
@@ -98,12 +97,11 @@ where
9897
/// # Examples
9998
///
10099
/// ```no_run
101-
/// use monoio::fs::File;
102-
///
100+
/// #[cfg(not(all(target_os = "linux", feature = "iouring")))]
103101
/// fn main() -> Result<(), Box<dyn std::error::Error>> {
104102
/// monoio::start::<monoio::LegacyDriver, _>(async {
105103
/// // Open a file
106-
/// let file = File::open("hello.txt").await?;
104+
/// let file = monoio::fs::File::open("hello.txt").await?;
107105
///
108106
/// let buf = vec![0; 4096];
109107
/// // Read some data, the buffer is passed by ownership and

0 commit comments

Comments
 (0)