diff --git a/tools/external_crates/crate_tool/src/managed_repo.rs b/tools/external_crates/crate_tool/src/managed_repo.rs index 23b0410f53..e672ef7a4e 100644 --- a/tools/external_crates/crate_tool/src/managed_repo.rs +++ b/tools/external_crates/crate_tool/src/managed_repo.rs @@ -578,10 +578,7 @@ impl ManagedRepo { if licenses.satisfied.len() == 1 && licenses.unsatisfied.is_empty() { let license_file = krate.path().join("LICENSE")?; if !license_file.abs().exists() { - symlink( - licenses.satisfied.iter().next().unwrap().1.file_name().unwrap(), - license_file, - )?; + symlink(licenses.satisfied.iter().next().unwrap().1, license_file)?; } }