]> git.lizzy.rs Git - rust.git/blobdiff - clippy_dev/src/serve.rs
Shrink the size of Rvalue by 16 bytes
[rust.git] / clippy_dev / src / serve.rs
index a46c0e4d3f0a1525eb39ee56bee441eec6e710fd..d13c27a1957d60170f48f866120e17d070376fd1 100644 (file)
@@ -4,6 +4,9 @@
 use std::thread;
 use std::time::{Duration, SystemTime};
 
+/// # Panics
+///
+/// Panics if the python commands could not be spawned
 pub fn run(port: u16, lint: Option<&str>) -> ! {
     let mut url = Some(match lint {
         None => format!("http://localhost:{}", port),
@@ -31,7 +34,7 @@ pub fn run(port: u16, lint: Option<&str>) -> ! {
                 // Give some time for python to start
                 thread::sleep(Duration::from_millis(500));
                 // Launch browser after first export.py has completed and http.server is up
-                let _ = opener::open(url);
+                let _result = opener::open(url);
             });
         }
         thread::sleep(Duration::from_millis(1000));