Get rid of some warnings
This commit is contained in:
		@@ -38,14 +38,14 @@ impl<'proxy> NativeObject<'proxy> {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    fn no_path<MD: core::fmt::Display, VD: core::fmt::Debug>(method: MD, variant: VD) -> ! {
 | 
					    // fn no_path<MD: core::fmt::Display, VD: core::fmt::Debug>(method: MD, variant: VD) -> ! {
 | 
				
			||||||
        panic!("No method {} on variant {:?}", method, variant)
 | 
					    //     panic!("No method {} on variant {:?}", method, variant)
 | 
				
			||||||
    }
 | 
					    // }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    pub async fn start(&self) -> Result<(), Error> {
 | 
					    pub async fn start(&self) -> Result<(), Error> {
 | 
				
			||||||
        let proxy = match self {
 | 
					        let proxy = match self {
 | 
				
			||||||
            Self::Daemon(p) | Self::Minecraft(p) => p,
 | 
					            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
 | 
					        proxy.method_call(iface_name("Service"), "Start", ()).await
 | 
				
			||||||
@@ -54,7 +54,7 @@ impl<'proxy> NativeObject<'proxy> {
 | 
				
			|||||||
    pub async fn stop(&self) -> Result<(), Error> {
 | 
					    pub async fn stop(&self) -> Result<(), Error> {
 | 
				
			||||||
        let proxy = match self {
 | 
					        let proxy = match self {
 | 
				
			||||||
            Self::Daemon(p) | Self::Minecraft(p) => p,
 | 
					            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;
 | 
					        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 {
 | 
					    pub async fn is_running(&self) -> bool {
 | 
				
			||||||
        let proxy = match self {
 | 
					        let proxy = match self {
 | 
				
			||||||
            Self::Daemon(p) | Self::Minecraft(p) => p,
 | 
					            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;
 | 
					        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> {
 | 
					    pub async fn restart(&self) -> Result<(), Error> {
 | 
				
			||||||
        let proxy = match self {
 | 
					        let proxy = match self {
 | 
				
			||||||
            Self::Daemon(p) | Self::Minecraft(p) => p,
 | 
					            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
 | 
					        proxy.method_call(iface_name("Service"), "Restart", ()).await
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user