From 7d6a26390593c407640740f27efacfa8794c426f Mon Sep 17 00:00:00 2001 From: radu Date: Sun, 19 May 2024 04:27:39 +0300 Subject: [PATCH] early exit with message not ready for this platform --- src/main.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/main.rs b/src/main.rs index 775e6c7..211da85 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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::("mount-point").unwrap().as_str()) @@ -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 {