diff --git a/lib/src/config/mod.rs b/lib/src/config/mod.rs index b6746f3f..1443db7a 100644 --- a/lib/src/config/mod.rs +++ b/lib/src/config/mod.rs @@ -537,7 +537,7 @@ mod test { assert!(RocketConfig::parse(r#" [development] - address = "_idk_?" + address = "!_idk_?" "#.to_string(), TEST_CONFIG_FILENAME).is_err()); assert!(RocketConfig::parse(r#" @@ -547,7 +547,7 @@ mod test { assert!(RocketConfig::parse(r#" [production] - address = "1.2.3.4.5.6" + address = "!@#$%^&*()" "#.to_string(), TEST_CONFIG_FILENAME).is_err()); } diff --git a/lib/src/rocket.rs b/lib/src/rocket.rs index c2b9aa92..fa287913 100644 --- a/lib/src/rocket.rs +++ b/lib/src/rocket.rs @@ -303,7 +303,7 @@ impl Rocket { /// /// # if false { // We don't actually want to launch the server in an example. /// rocket::ignite().mount("/hello", vec![Route::new(Get, "/world", hi)]) - /// # :.launch() + /// # .launch() /// # } /// ``` pub fn mount(mut self, base: &str, routes: Vec) -> Self { @@ -351,7 +351,6 @@ impl Rocket { /// rocket::ignite().launch() /// # } /// ``` - #[cfg(not(feature = "testing"))] pub fn launch(self) { if self.router.has_collisions() { warn!("Route collisions detected!"); @@ -373,5 +372,4 @@ impl Rocket { server.handle(self).unwrap(); } - }