Skip to content

Commit

Permalink
Fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion committed Aug 25, 2021
1 parent 8eb5483 commit ebb5e5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion impl/src/bin/cargo-raze.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ fn render_files(

let mut bazel_renderer = BazelRenderer::new();
let render_details = RenderDetails {
cargo_root: metadata.cargo_workspace_root.clone().into(),
cargo_root: metadata.cargo_workspace_root.clone(),
path_prefix: PathBuf::from(&settings.workspace_path.trim_start_matches('/')),
package_aliases_dir: settings.package_aliases_dir.clone(),
vendored_buildfile_name: settings.output_buildfile_suffix.clone(),
Expand Down
4 changes: 2 additions & 2 deletions impl/src/planning/subplanners.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ impl<'planner> WorkspaceSubplanner<'planner> {
.get(&target)
.map(|x| x.to_string())
.unwrap_or(pkg_name);
let dep_alias = DependencyAlias { alias, target };
let dep_alias = DependencyAlias { target, alias };

to_alias
.raze_settings
Expand Down Expand Up @@ -313,8 +313,8 @@ impl<'planner> CrateSubplanner<'planner> {
.collect();

Ok(CrateTargetedDepContext {
deps,
target,
deps,
platform_targets,
})
})
Expand Down

0 comments on commit ebb5e5b

Please sign in to comment.