Skip to content

Commit

Permalink
chore: fix old clippy warnings (#6204)
Browse files Browse the repository at this point in the history
### Description

Not sure how these aren't failing on main, but locally `clippy`
complains about these for me.

### Testing Instructions

CI Clippy passes

Closes TURBO-1483

Co-authored-by: Chris Olszewski <Chris Olszewski>
  • Loading branch information
chris-olszewski committed Oct 19, 2023
1 parent 29f7646 commit 62b949d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions crates/turborepo-lib/src/config/turbo_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -576,9 +576,11 @@ mod test {
vercel_artifacts_owner.into(),
);

let mut override_config: ConfigurationOptions = Default::default();
override_config.token = Some("unseen".into());
override_config.team_id = Some("unseen".into());
let override_config = ConfigurationOptions {
token: Some("unseen".into()),
team_id: Some("unseen".into()),
..Default::default()
};

let builder = TurborepoConfigBuilder {
repo_root,
Expand All @@ -595,8 +597,10 @@ mod test {
#[test]
fn test_shared_no_token() {
let mut test_shared_config: RawTurboJSON = Default::default();
let mut configuration_options: ConfigurationOptions = Default::default();
configuration_options.token = Some("IF YOU CAN SEE THIS WE HAVE PROBLEMS".to_string());
let configuration_options = ConfigurationOptions {
token: Some("IF YOU CAN SEE THIS WE HAVE PROBLEMS".to_string()),
..Default::default()
};
test_shared_config.remote_cache = Some(configuration_options);

assert_eq!(
Expand Down

0 comments on commit 62b949d

Please sign in to comment.