Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 17 lines 803 B view raw
1diff --git a/aw-server/src/endpoints/mod.rs b/aw-server/src/endpoints/mod.rs 2index a080d2a..0411d1e 100644 3--- a/aw-server/src/endpoints/mod.rs 4+++ b/aw-server/src/endpoints/mod.rs 5@@ -76,11 +76,10 @@ async fn root_favicon(state: &State<ServerState>) -> Option<NamedFile> { 6 fn server_info(config: &State<AWConfig>, state: &State<ServerState>) -> Json<Info> { 7 #[allow(clippy::or_fun_call)] 8 let hostname = gethostname().into_string().unwrap_or("unknown".to_string()); 9- const VERSION: Option<&'static str> = option_env!("CARGO_PKG_VERSION"); 10 11 Json(Info { 12 hostname, 13- version: format!("v{} (rust)", VERSION.unwrap_or("(unknown)")), 14+ version: String::from("@version@ (rust)"), 15 testing: config.testing, 16 device_id: state.device_id.clone(), 17 })