Commit 17491605 authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Satisfy clippy

parent d107f318
Pipeline #132 passed with stage
in 3 minutes and 55 seconds
......@@ -860,7 +860,7 @@ pub fn start_server(conn: Connection, config: ::Config) -> iron::error::HttpResu
ch.link_around(CookieDistributor::new());
ch.link_around(SessionStorage::new(SignedCookieBackend::new(my_secret)));
ch.link_after(get_handlebars_engine(&config.template.unwrap_or("default".to_string())));
ch.link_after(get_handlebars_engine(&config.template.unwrap_or_else(|| "default".to_string())));
ch.link_after(ErrorReporter);
let socket_addr = format!("{}:{}", config.host.unwrap(), config.port.unwrap());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment