Skip to content

Commit

Permalink
fixup: rustfmt for #58
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Jan 6, 2024
1 parent 2d26d1c commit 44fe8a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/portal/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@
// - Make more things async

#[cfg(feature = "async-std")]
use async_fs::unix::OpenOptionsExt;
#[cfg(feature = "async-std")]
use futures_lite::AsyncWriteExt;
use std::io;
use std::{
collections::HashMap,
path::{Path, PathBuf},
};

#[cfg(feature = "async-std")]
use async_fs as fs;
#[cfg(feature = "async-std")]
use async_fs::unix::OpenOptionsExt;
#[cfg(feature = "async-std")]
use futures_lite::AsyncWriteExt;
use once_cell::sync::Lazy;
use rand::Rng;
use serde::{Deserialize, Serialize};
#[cfg(feature = "async-std")]
use std::io;
#[cfg(feature = "tokio")]
use tokio::{fs, io, io::AsyncWriteExt};
use zbus::zvariant::{self, Type};
Expand Down
4 changes: 2 additions & 2 deletions src/portal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
//! # }
//! ```
#[cfg(feature = "async-std")]
use std::io;
use std::{
collections::HashMap,
path::{Path, PathBuf},
Expand All @@ -41,8 +43,6 @@ use async_lock::{Mutex, RwLock};
#[cfg(feature = "async-std")]
use futures_lite::AsyncReadExt;
use once_cell::sync::OnceCell;
#[cfg(feature = "async-std")]
use std::io;
#[cfg(feature = "tokio")]
use tokio::{
fs, io,
Expand Down

0 comments on commit 44fe8a6

Please sign in to comment.