Skip to content

Commit

Permalink
Run rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
overdrivenpotato committed May 10, 2020
1 parent 7b649c7 commit 7444494
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/librustc_codegen_ssa/back/link.rs
Expand Up @@ -1180,12 +1180,7 @@ fn add_pre_link_args(
}

/// Add a link script embedded in the target, if applicable.
fn add_link_script(
cmd: &mut dyn Linker,
sess: &Session,
tmpdir: &Path,
crate_type: CrateType,
) {
fn add_link_script(cmd: &mut dyn Linker, sess: &Session, tmpdir: &Path, crate_type: CrateType) {
match (crate_type, &sess.target.target.options.link_script) {
(CrateType::Cdylib | CrateType::Executable, Some(script)) => {
if !sess.target.target.options.linker_is_gnu {
Expand Down

0 comments on commit 7444494

Please sign in to comment.