Skip to content

Commit

Permalink
cargo clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanhammond committed Aug 28, 2023
1 parent a64ee1a commit d28b8f8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion crates/turborepo-lib/src/commands/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,6 @@ mod test {
use std::{cell::OnceCell, fs};

use anyhow::Result;
use camino::Utf8PathBuf;
use tempfile::{NamedTempFile, TempDir};
use turbopath::AbsoluteSystemPathBuf;
use turborepo_ui::UI;
Expand Down
2 changes: 1 addition & 1 deletion crates/turborepo-lib/src/commands/login.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pub async fn login(base: &mut CommandBase) -> Result<()> {
.ok_or_else(|| anyhow!("Failed to get token"))?;

let before = base.global_config_path()?.read_to_string()?;
let after = set_path(&before, &["token"], &token)?;
let after = set_path(&before, &["token"], token)?;
base.global_config_path()?.ensure_dir();
base.global_config_path()?.create_with_contents(after);

Expand Down
2 changes: 1 addition & 1 deletion crates/turborepo-lib/src/config/turbo_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl ResolvedConfigurationOptions for PackageJson {
let synthetic_raw_turbo_json: RawTurboJSON =
serde_json::from_value(legacy_turbo_config.clone())
.map_err(|_| anyhow!("global_de"))?;
return synthetic_raw_turbo_json.get_configuration_options();
synthetic_raw_turbo_json.get_configuration_options()
}
None => Ok(ConfigurationOptions::default()),
}
Expand Down

0 comments on commit d28b8f8

Please sign in to comment.