Simplify default Result generics.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2025-07-24 04:07:27 +00:00
1 parent 8244d78cb2
commit ae707ab465
42 files changed
+95 -115

No files matched your search

+2 -2
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}");
}