Fix rustdoc warnings (#182)

Changes to make `cargo doc --all --all-features` pass without warnings.
This commit is contained in:
konsti 2023-10-25 13:48:24 +02:00 committed by GitHub
parent d0aeb2ac80
commit b5c57ee6fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -306,7 +306,7 @@ impl<'source> FromPyObject<'source> for Version {
}
}
/// Workaround for https://github.com/PyO3/pyo3/pull/2786
/// Workaround for <https://github.com/PyO3/pyo3/pull/2786>
#[cfg(feature = "pyo3")]
#[derive(Clone, Debug)]
#[pyclass(name = "Version")]

View file

@ -78,7 +78,7 @@ struct PipCompileArgs {
#[clap(short, long)]
output_file: Option<PathBuf>,
/// The URL of the Python Package Index (default: https://pypi.org/simple).
/// The URL of the Python Package Index (default: <https://pypi.org/simple>).
#[clap(long, short)]
index_url: Option<Url>,
@ -101,7 +101,7 @@ struct PipSyncArgs {
#[clap(long, value_enum)]
link_mode: Option<install_wheel_rs::linker::LinkMode>,
/// The URL of the Python Package Index (default: https://pypi.org/simple).
/// The URL of the Python Package Index (default: <https://pypi.org/simple>).
#[clap(long, short)]
index_url: Option<Url>,

View file

@ -23,7 +23,7 @@ impl<'a> Installer<'a> {
}
}
/// Set the [`Mode`] to use for this installer.
/// Set the [`LinkMode`][`install_wheel_rs::linker::LinkMode`] to use for this installer.
#[must_use]
pub fn with_link_mode(self, link_mode: install_wheel_rs::linker::LinkMode) -> Self {
Self { link_mode, ..self }