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
1515
1616[lib ]
1717name = " cargo_registry"
18- doctest = false
18+ doctest = true
1919
2020[[test ]]
2121name = " all"
Original file line number Diff line number Diff line change @@ -55,9 +55,12 @@ pub fn remove_owners(req: &mut dyn RequestExt) -> EndpointResult {
5555}
5656
5757/// Parse the JSON request body of requests to modify the owners of a crate.
58- /// The format is
5958///
60- /// {"owners": ["username", "github:org:team", ...]}
59+ /// The format is:
60+ ///
61+ /// ```json
62+ /// {"owners": ["username", "github:org:team", ...]}
63+ /// ```
6164fn parse_owners_request ( req : & mut dyn RequestExt ) -> AppResult < Vec < String > > {
6265 let mut body = String :: new ( ) ;
6366 req. body ( ) . read_to_string ( & mut body) ?;
You can’t perform that action at this time.
0 commit comments