Skip to content

Commit 97487fb

Browse files
committed
Auto merge of #11856 - epage:docs-warn, r=hi-rustin
docs: Address warnings This is to help prepare for checking for doc warnings across the entire workspace being created in #11851 `Mutation` was made `pub`, along with its fields, but they aren't actually usable with anything, so I went and made it private to match what its documentation references
2 parents ff1e4eb + f8f7e7c commit 97487fb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

crates/cargo-test-support/src/registry.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -593,13 +593,13 @@ pub struct HttpServer {
593593
custom_responders: HashMap<&'static str, Box<dyn Send + Fn(&Request, &HttpServer) -> Response>>,
594594
}
595595

596-
/// A helper struct that collects the arguments for [HttpServer::check_authorized].
596+
/// A helper struct that collects the arguments for [`HttpServer::check_authorized`].
597597
/// Based on looking at the request, these are the fields that the authentication header should attest to.
598-
pub struct Mutation<'a> {
599-
pub mutation: &'a str,
600-
pub name: Option<&'a str>,
601-
pub vers: Option<&'a str>,
602-
pub cksum: Option<&'a str>,
598+
struct Mutation<'a> {
599+
mutation: &'a str,
600+
name: Option<&'a str>,
601+
vers: Option<&'a str>,
602+
cksum: Option<&'a str>,
603603
}
604604

605605
impl HttpServer {
@@ -1204,7 +1204,7 @@ impl Package {
12041204
}
12051205

12061206
/// Adds a platform-specific dependency. Example:
1207-
/// ```
1207+
/// ```toml
12081208
/// [target.'cfg(windows)'.dependencies]
12091209
/// foo = {version = "1.0"}
12101210
/// ```

0 commit comments

Comments
 (0)