Skip to content

Commit 907bc0f

Browse files
committed
Rearrange CacheLockMode order.
1 parent b4982ad commit 907bc0f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/cargo/util/cache_lock.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,6 @@ use std::io;
7070
/// The style of lock to acquire.
7171
#[derive(Copy, Clone, Debug)]
7272
pub enum CacheLockMode {
73-
/// A `Shared` lock allows multiple cargos to read from the source files.
74-
///
75-
/// If another cargo has a `MutateExclusive` lock, then an attempt to get
76-
/// a `Shared` will block.
77-
///
78-
/// If another cargo has a `DownloadExclusive` lock, then the both can
79-
/// operate concurrently under the assumption that downloading does not
80-
/// modify existing source files.
81-
Shared,
8273
/// A `DownloadExclusive` lock ensures that only one cargo is downloading
8374
/// new packages.
8475
///
@@ -88,6 +79,15 @@ pub enum CacheLockMode {
8879
/// If another cargo has a `Shared` lock, then both can operate
8980
/// concurrently.
9081
DownloadExclusive,
82+
/// A `Shared` lock allows multiple cargos to read from the source files.
83+
///
84+
/// If another cargo has a `MutateExclusive` lock, then an attempt to get
85+
/// a `Shared` will block.
86+
///
87+
/// If another cargo has a `DownloadExclusive` lock, then the both can
88+
/// operate concurrently under the assumption that downloading does not
89+
/// modify existing source files.
90+
Shared,
9191
/// A `MutateExclusive` lock ensures no other cargo is reading or writing
9292
/// from the package caches.
9393
///

0 commit comments

Comments
 (0)