Skip to content

Commit

Permalink
Removed some explicit types which are no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jesse99 committed Dec 26, 2012
1 parent 46aa0c7 commit 1d63a62
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server/src/main.rs
Expand Up @@ -233,11 +233,9 @@ fn main()
// using settings would be simpler).
let up: server::OpenSse = |_config: &Config, request: &Request, push| {uptime_sse(registrar, request, push)};

// TODO: Shouldn't need all of these damned explicit types but rustc currently
// has problems with type inference woth closures and borrowed pointers.
let greeting_v: ResponseHandler = greeting_view;
let home_v: ResponseHandler = |config: &Config, request: &Request, response: Response, copy options| {home_view(config, &options, request, response)};
let shutdown_v: ResponseHandler = |_config: &Config, _request: &Request, _response: Response| {info!("received shutdown request"); libc::exit(0)};
let home_v: ResponseHandler = |config, request, response, copy options| {home_view(config, &options, request, response)};
let shutdown_v: ResponseHandler = |_config, _request, _response| {info!("received shutdown request"); libc::exit(0)};

let config = server::Config
{
Expand Down

0 comments on commit 1d63a62

Please sign in to comment.