File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ opt-level = 2
15
15
16
16
[lib ]
17
17
name = " cargo_registry"
18
- doctest = false
18
+ doctest = true
19
19
20
20
[[test ]]
21
21
name = " all"
Original file line number Diff line number Diff line change @@ -55,9 +55,12 @@ pub fn remove_owners(req: &mut dyn RequestExt) -> EndpointResult {
55
55
}
56
56
57
57
/// Parse the JSON request body of requests to modify the owners of a crate.
58
- /// The format is
59
58
///
60
- /// {"owners": ["username", "github:org:team", ...]}
59
+ /// The format is:
60
+ ///
61
+ /// ```json
62
+ /// {"owners": ["username", "github:org:team", ...]}
63
+ /// ```
61
64
fn parse_owners_request ( req : & mut dyn RequestExt ) -> AppResult < Vec < String > > {
62
65
let mut body = String :: new ( ) ;
63
66
req. body ( ) . read_to_string ( & mut body) ?;
You can’t perform that action at this time.
0 commit comments