agate

Simple gemini server for static files
git clone https://github.com/mbrubeck/agate.git
Log | Files | Refs | README

commit e0cd1a723a90853a5fd456628789f811f445a5a8
parent 3089a4034a224d99fadfe35ab5b5ecd19361dfef
Author: Johann150 <johann.galle@protonmail.com>
Date:   Sat,  6 Feb 2021 20:03:58 +0100

resolve clippy warnings

Diffstat:
Msrc/main.rs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.rs b/src/main.rs @@ -127,7 +127,7 @@ fn args() -> Result<Args> { let matches = opts.parse(&args[1..]).map_err(|f| f.to_string())?; if matches.opt_present("h") { let usage = opts.usage(&format!("Usage: {} [options]", &args[0])); - Err(usage)?; + return Err(usage.into()) } let hostname = match matches.opt_str("hostname") { Some(s) => Some(Host::parse(&s)?), @@ -332,7 +332,7 @@ impl RequestHandle { Ok(file) => file, Err(e) => { self.send_header(51, "Not found, sorry.").await?; - Err(e)? + return Err(e.into()) } };