diff options
author | Teddy Wing | 2021-06-15 20:58:19 +0200 |
---|---|---|
committer | Teddy Wing | 2021-06-15 20:58:19 +0200 |
commit | 9cac11872c3b62362ac884a8ac0151581076b99a (patch) | |
tree | e72bea177885d252e55d0946bf6711745e76c526 /src/main.rs | |
parent | 0f04d7cbb8052ed2a9d48a2579319e48e2305768 (diff) | |
download | reflectub-9cac11872c3b62362ac884a8ac0151581076b99a.tar.bz2 |
run(): Only clone repo name if we need it for error context
This avoids cloning names of repos that are processed successfully.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 20efb18..2de21b9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -122,7 +122,7 @@ fn run() -> Result<(), MultiError> { .par_iter() .map(|repo| { ( - repo.name.clone(), + &repo.name, process_repo( &repo, &db, @@ -139,7 +139,7 @@ fn run() -> Result<(), MultiError> { error .err() .unwrap() - .context(name) + .context(name.clone()) }) .collect(); |