Skip to content

Commit

Permalink
fix: copy windows dll without replacements (#590)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv authored Apr 2, 2024
1 parent cc16fe7 commit b43b03e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/rattler/src/install/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ fn copy_to_destination(
/// See both [`copy_and_replace_cstring_placeholder`] and [`copy_and_replace_textual_placeholder`]
pub fn copy_and_replace_placeholders(
source_bytes: &[u8],
destination: impl Write,
mut destination: impl Write,
prefix_placeholder: &str,
target_prefix: &str,
target_platform: &Platform,
Expand All @@ -490,6 +490,8 @@ pub fn copy_and_replace_placeholders(
prefix_placeholder,
target_prefix,
)?;
} else {
destination.write_all(source_bytes)?;
}
}
}
Expand Down

0 comments on commit b43b03e

Please sign in to comment.