File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -70,15 +70,6 @@ use std::io;
70
70
/// The style of lock to acquire.
71
71
#[ derive( Copy , Clone , Debug ) ]
72
72
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 ,
82
73
/// A `DownloadExclusive` lock ensures that only one cargo is downloading
83
74
/// new packages.
84
75
///
@@ -88,6 +79,15 @@ pub enum CacheLockMode {
88
79
/// If another cargo has a `Shared` lock, then both can operate
89
80
/// concurrently.
90
81
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 ,
91
91
/// A `MutateExclusive` lock ensures no other cargo is reading or writing
92
92
/// from the package caches.
93
93
///
You can’t perform that action at this time.
0 commit comments