From 60e30edce0d118b283e955e2da702e37f0056d3e Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Fri, 10 Mar 2017 22:24:56 +0900 Subject: [PATCH] Make it work on stable --- src/cmd/serve.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/serve.rs b/src/cmd/serve.rs index e84c5eb6..30a621e5 100644 --- a/src/cmd/serve.rs +++ b/src/cmd/serve.rs @@ -74,7 +74,7 @@ pub fn serve(interface: &str, port: &str) -> Result<()> { mount.mount("/livereload.js", livereload_handler); // Starts with a _ to not trigger the unused lint // we need to assign to a variable otherwise it will block - let _iron = Iron::new(mount).http(address.clone()).unwrap(); + let _iron = Iron::new(mount).http(address.as_str()).unwrap(); println!("Web server is available at http://{}", address); // The websocket for livereload