mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 21:26:50 +00:00
Simplify default Result generics.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
8244d78cb2
commit
ae707ab465
42 files changed
+95
-115
No files matched your search
+2
-2
@@ -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}");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user