Skip to content

Commit f2084b7

Browse files
committed
make SourceConfigMap cloneable
1 parent 40226f5 commit f2084b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cargo/sources/config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use util::{Config, ToUrl};
1515
use util::config::ConfigValue;
1616
use util::errors::{CargoError, CargoResult, CargoResultExt};
1717

18+
#[derive(Clone)]
1819
pub struct SourceConfigMap<'cfg> {
1920
cfgs: HashMap<String, SourceConfig>,
2021
id2name: HashMap<SourceId, String>,
@@ -28,6 +29,7 @@ pub struct SourceConfigMap<'cfg> {
2829
/// registry = 'https://github.com/rust-lang/crates.io-index'
2930
/// replace-with = 'foo' # optional
3031
/// ```
32+
#[derive(Clone)]
3133
struct SourceConfig {
3234
// id this source corresponds to, inferred from the various defined keys in
3335
// the configuration

0 commit comments

Comments
 (0)