Skip to content

Commit c69b2d2

Browse files
Improve the code style
Co-authored-by: Techassi <[email protected]>
1 parent b3e460e commit c69b2d2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

crates/stackable-operator/src/crd/git_sync/v1alpha1_impl.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,10 @@ impl GitSyncResources {
250250
("--one-time".to_string(), one_time.to_string()),
251251
]);
252252

253-
let internal_git_config = [(
254-
GIT_SYNC_SAFE_DIR_OPTION.to_string(),
255-
GIT_SYNC_ROOT_DIR.to_string(),
256-
)]
257-
.into_iter()
258-
.collect::<BTreeMap<_, _>>();
253+
let internal_git_config = BTreeMap::from([(
254+
GIT_SYNC_SAFE_DIR_OPTION.to_owned(),
255+
GIT_SYNC_ROOT_DIR.to_owned(),
256+
)]);
259257

260258
let mut user_defined_args = BTreeMap::new();
261259
// The key and value in Git configs are separated by a colon, but both

0 commit comments

Comments
 (0)