Skip to content

Commit 560fd91

Browse files
committed
use same feature is_sync as maybe_async
1 parent d90e591 commit 560fd91

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ hex-literal = "0.4.1"
2929
sha2 = "0.10"
3030

3131
[features]
32-
default = ["log"]
32+
default = ["log", "is_sync"]
3333
defmt-log = ["dep:defmt"]
3434
log = ["dep:log"]
35-
async = []
35+
is_sync = ["maybe-async/is_sync"]

src/filesystem/files.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ use crate::{
44
BlockDevice, Error, RawVolume, VolumeManager,
55
};
66

7-
#[cfg(not(feature="async"))]
7+
#[cfg(feature="is_sync")]
88
use embedded_io::{ErrorType, Read, Seek, SeekFrom, Write};
9-
#[cfg(feature="async")]
9+
10+
#[cfg(not(feature="is_sync"))]
1011
use embedded_io_async::{ErrorType, Read, Seek, SeekFrom, Write};
1112

1213
/// A handle for an open file on disk.

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@ pub mod sdcard;
7575

7676
use core::fmt::Debug;
7777

78-
#[cfg(not(feature="async"))]
78+
#[cfg(feature="is_sync")]
7979
use embedded_io::ErrorKind;
80-
#[cfg(feature="async")]
80+
81+
#[cfg(not(feature="is_sync"))]
8182
use embedded_io_async::ErrorKind;
8283

8384
use filesystem::Handle;

0 commit comments

Comments
 (0)