We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Unknown
1 parent f62c2a8 commit 0d036f2Copy full SHA for 0d036f2
src/api/server_info.rs
@@ -35,7 +35,17 @@ macro_rules! CargoServerInfo_1bc8c806_8cb9_4aaf_b57a_8f94c4d1b59d {
35
server_name: env!("CARGO_PKG_NAME").to_owned(),
36
manufacturer: env!("CARGO_PKG_AUTHORS").to_owned(),
37
manufacturer_version: env!("CARGO_PKG_VERSION").to_owned(),
38
- location: env!("CARGO_PKG_HOMEPAGE").to_owned(),
+ location: {
39
+ // Technically this field should be a physical location,
40
+ // but repository homepage seems better than nothing.
41
+ let homepage = env!("CARGO_PKG_HOMEPAGE");
42
+ if homepage.is_empty() {
43
+ "Unknown"
44
+ } else {
45
+ homepage
46
+ }
47
48
+ .to_owned(),
49
}
50
};
51
0 commit comments