aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorTeddy Wing2020-07-04 15:46:15 +0200
committerTeddy Wing2020-07-04 15:50:24 +0200
commita95349de02343a89ba9b485861f57c17d39490e9 (patch)
tree0bc70ea63ca879820d96fbbd4f7f90752435a628 /src/lib.rs
parent9b8f7dcaa4c3c054d4e3e1edc7e0780167d2a59a (diff)
downloadfastcgi-conduit-a95349de02343a89ba9b485861f57c17d39490e9.tar.bz2
Server::start: Return a `Server` directly instead of a `Result`
We don't have any `Result`s to propagate in this function, so the `Result` return wrapper is unnecessary. Must have copied this signature from Civet without thinking: https://github.com/conduit-rust/rust-civet/blob/ab9c52ca634f65439060c2248295d2ac354aead5/src/lib.rs#L214
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index caf8663..4c253b5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -14,7 +14,7 @@
//!
//!
//! fn main() {
-//! Server::start(handler).unwrap();
+//! Server::start(handler);
//! }
//!
//! fn handler(_req: &mut dyn RequestExt) -> std::io::Result<Response<Body>> {