From 2f8ae9a3f8382da9ec93d379cb141f36df7d30d8 Mon Sep 17 00:00:00 2001 From: EliasSchriefer Date: Tue, 3 Nov 2020 17:49:06 +0100 Subject: [PATCH] Get rid of some warnings --- sfsmcctl/src/main.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sfsmcctl/src/main.rs b/sfsmcctl/src/main.rs index 313c7b2..105649b 100644 --- a/sfsmcctl/src/main.rs +++ b/sfsmcctl/src/main.rs @@ -38,14 +38,14 @@ impl<'proxy> NativeObject<'proxy> { } } - fn no_path(method: MD, variant: VD) -> ! { - panic!("No method {} on variant {:?}", method, variant) - } + // fn no_path(method: MD, variant: VD) -> ! { + // panic!("No method {} on variant {:?}", method, variant) + // } pub async fn start(&self) -> Result<(), Error> { let proxy = match self { Self::Daemon(p) | Self::Minecraft(p) => p, - _ => Self::no_path("start", self) + // _ => Self::no_path("start", self) }; proxy.method_call(iface_name("Service"), "Start", ()).await @@ -54,7 +54,7 @@ impl<'proxy> NativeObject<'proxy> { pub async fn stop(&self) -> Result<(), Error> { let proxy = match self { Self::Daemon(p) | Self::Minecraft(p) => p, - _ => Self::no_path("stop", self) + // _ => Self::no_path("stop", self) }; let res = proxy.method_call(iface_name("Service"), "Stop", ()).await; @@ -74,7 +74,7 @@ impl<'proxy> NativeObject<'proxy> { pub async fn is_running(&self) -> bool { let proxy = match self { Self::Daemon(p) | Self::Minecraft(p) => p, - _ => Self::no_path("is_running", self) + // _ => Self::no_path("is_running", self) }; let res = proxy.method_call(iface_name("Service"), "IsRunning", ()).await; @@ -93,7 +93,7 @@ impl<'proxy> NativeObject<'proxy> { pub async fn restart(&self) -> Result<(), Error> { let proxy = match self { Self::Daemon(p) | Self::Minecraft(p) => p, - _ => Self::no_path("restart", self) + // _ => Self::no_path("restart", self) }; proxy.method_call(iface_name("Service"), "Restart", ()).await