Skip to content

Cargo: Enable doctests again #4248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ opt-level = 2

[lib]
name = "cargo_registry"
doctest = false
doctest = true

[[test]]
name = "all"
Expand Down
7 changes: 5 additions & 2 deletions src/controllers/krate/owners.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,12 @@ pub fn remove_owners(req: &mut dyn RequestExt) -> EndpointResult {
}

/// Parse the JSON request body of requests to modify the owners of a crate.
/// The format is
///
/// {"owners": ["username", "github:org:team", ...]}
/// The format is:
///
/// ```json
/// {"owners": ["username", "github:org:team", ...]}
/// ```
fn parse_owners_request(req: &mut dyn RequestExt) -> AppResult<Vec<String>> {
let mut body = String::new();
req.body().read_to_string(&mut body)?;
Expand Down