Skip to content

Commit

Permalink
return Err for not implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
radu committed May 19, 2024
1 parent 0aba290 commit a64aadd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/mount/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::task::{Context, Poll};
use tracing::{error, warn};

use crate::crypto::Cipher;
use crate::encryptedfs::{FsResult, PasswordProvider};
use crate::encryptedfs::{FsError, FsResult, PasswordProvider};
use crate::mount;
use crate::mount::{MountHandleInner, MountPoint};

Expand Down Expand Up @@ -49,9 +49,9 @@ impl MountPoint for MountPointImpl {
}

async fn mount(mut self) -> FsResult<mount::MountHandle> {
Ok(mount::MountHandle {
inner: MountHandleInnerImpl {},
})
Err(FsError::Other(
"he he, not yet ready for this platform, but soon my friend, soon :)",
))
}
}

Expand Down
8 changes: 4 additions & 4 deletions src/mount/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::task::{Context, Poll};
use tracing::{error, warn};

use crate::crypto::Cipher;
use crate::encryptedfs::{FsResult, PasswordProvider};
use crate::encryptedfs::{FsError, FsResult, PasswordProvider};
use crate::mount;
use crate::mount::{MountHandleInner, MountPoint};

Expand Down Expand Up @@ -49,9 +49,9 @@ impl MountPoint for MountPointImpl {
}

async fn mount(mut self) -> FsResult<mount::MountHandle> {
Ok(mount::MountHandle {
inner: MountHandleInnerImpl {},
})
Err(FsError::Other(
"he he, not yet ready for this platform, but soon my friend, soon :)",
))
}
}

Expand Down

0 comments on commit a64aadd

Please sign in to comment.