Skip to content

Commit

Permalink
early exit with message not ready for this platform
Browse files Browse the repository at this point in the history
  • Loading branch information
radu committed May 19, 2024
1 parent 4da57c8 commit 7d6a263
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ async fn main() -> Result<()> {
};
let guard = log_init(log_level);

#[cfg(not(target_os = "linux"))]
error!("he he, not yet ready for this platform, but soon my friend, soon :)");
#[cfg(not(target_os = "linux"))]
return Ok(());

let mount_point = match matches.subcommand() {
Some(("mount", matches)) => {
Some(matches.get_one::<String>("mount-point").unwrap().as_str())
Expand Down Expand Up @@ -404,14 +409,6 @@ async fn run_mount(cipher: Cipher, matches: &ArgMatches) -> Result<()> {
}));
})?;

// mount_handle
// .lock()
// .unwrap()
// .as_mut()
// .unwrap()
// .as_mut()
// .unwrap()
// .await?;
task::spawn_blocking(|| {
let rt = tokio::runtime::Handle::current();
rt.block_on(async {
Expand Down

0 comments on commit 7d6a263

Please sign in to comment.