Skip to content

Commit 2daf97c

Browse files
committed
Resolve doc warnings for RegistryData
Specify `Self::finish_download` instead of just `finish_download` and link to `crate::core::package::Downloads` instead of `Download` as `Downloads` is the public one, does the actual stuff and `Download` only stores data. Signed-off-by: Paul Mabileau <paulmabileau@hotmail.fr>
1 parent acf1576 commit 2daf97c

File tree

1 file changed

+3
-3
lines changed
  • src/cargo/sources/registry

1 file changed

+3
-3
lines changed

src/cargo/sources/registry/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,9 @@ pub trait RegistryData {
460460
/// Despite the name, this doesn't actually download anything. If the
461461
/// `.crate` is already downloaded, then it returns [`MaybeLock::Ready`].
462462
/// If it hasn't been downloaded, then it returns [`MaybeLock::Download`]
463-
/// which contains the URL to download. The [`crate::core::package::Download`]
463+
/// which contains the URL to download. The [`crate::core::package::Downloads`]
464464
/// system handles the actual download process. After downloading, it
465-
/// calls [`finish_download`] to save the downloaded file.
465+
/// calls [`Self::finish_download`] to save the downloaded file.
466466
///
467467
/// `checksum` is currently only used by local registries to verify the
468468
/// file contents (because local registries never actually download
@@ -474,7 +474,7 @@ pub trait RegistryData {
474474

475475
/// Finish a download by saving a `.crate` file to disk.
476476
///
477-
/// After [`crate::core::package::Download`] has finished a download,
477+
/// After [`crate::core::package::Downloads`] has finished a download,
478478
/// it will call this to save the `.crate` file. This is only relevant
479479
/// for remote registries. This should validate the checksum and save
480480
/// the given data to the on-disk cache.

0 commit comments

Comments
 (0)