From 82977239bd82f8d48ba5f606ed052018a0abb925 Mon Sep 17 00:00:00 2001 From: Able Date: Fri, 26 Nov 2021 03:57:42 -0600 Subject: [PATCH] minor work done --- src/main.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index fbef732..39f15af 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,7 +10,6 @@ use fuse::{ }; use libc::ENOENT; use std::env; -use std::path::Path; use time::Timespec; const TTL: Timespec = Timespec { sec: 1, nsec: 0 }; // 1 second @@ -114,5 +113,11 @@ impl Filesystem for HelloFS { fn main() { let mountpoint = env::args_os().nth(1).unwrap(); - fuse::mount(HelloFS, &mountpoint, &[]); + let handle = fuse::mount(HelloFS, &mountpoint, &[]); + match handle { + Ok(_) => {} + Err(error) => { + println!("{}", error) + } + } }