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.
json!
1 parent 88dc5a7 commit 48a2fdfCopy full SHA for 48a2fdf
src/controllers/version/metadata.rs
@@ -7,7 +7,7 @@
7
use crate::controllers::frontend_prelude::*;
8
9
use crate::models::VersionOwnerAction;
10
-use crate::views::{EncodableDependency, EncodablePublicUser, EncodableVersion};
+use crate::views::{EncodableDependency, EncodableVersion};
11
12
use super::{extract_crate_name_and_semver, version_and_crate};
13
@@ -37,8 +37,8 @@ pub fn authors(req: &mut dyn RequestExt) -> EndpointResult {
37
// Because the API is not used anymore after RFC https://github.com/rust-lang/rfcs/pull/3052.
38
39
Ok(req.json(&json!({
40
- "users": vec![],
41
- "meta": { "names": vec![] },
+ "users": [],
+ "meta": { "names": [] },
42
})))
43
}
44
0 commit comments