Simplify default Result generics.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-07-08 12:08:13 +00:00
parent 8244d78cb2
commit ae707ab465
42 changed files with 95 additions and 115 deletions

View File

@@ -64,7 +64,7 @@ impl Server {
}
}
pub fn reload(&self) -> Result<()> {
pub fn reload(&self) -> Result {
if cfg!(any(not(tuwunel_mods), not(feature = "tuwunel_mods"))) {
return Err!("Reloading not enabled");
}
@@ -103,7 +103,7 @@ impl Server {
})
}
pub fn signal(&self, sig: &'static str) -> Result<()> {
pub fn signal(&self, sig: &'static str) -> Result {
if let Err(e) = self.signal.send(sig) {
return Err!("Failed to send signal: {e}");
}