Skip to content

Commit 7bb78ed

Browse files
committed
Deprecate release-fast profile
1 parent 938039e commit 7bb78ed

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,10 +591,11 @@ required-features = ["uudoc"]
591591
[profile.release]
592592
lto = true
593593
panic = "abort"
594+
codegen-units = 1
594595

595-
[profile.release-fast]
596+
[profile.release-fast] # deprecated
596597
inherits = "release"
597-
codegen-units = 1
598+
598599

599600
# A release-like profile that is as small as possible.
600601
[profile.release-small]

src/uu/shuf/src/shuf.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,12 +445,16 @@ impl Writable for usize {
445445
}
446446
}
447447

448-
fn shuf_exec(
449-
input: &mut impl Shufable,
448+
fn shuf_exec<S, W>(
449+
input: &mut S,
450450
opts: &Options,
451451
rng: &mut WrappedRng,
452-
output: &mut BufWriter<Box<dyn OsWrite>>,
453-
) -> UResult<()> {
452+
output: &mut BufWriter<W>,
453+
) -> UResult<()>
454+
where
455+
S: Shufable,
456+
W: OsWrite,
457+
{
454458
let ctx = || translate!("shuf-error-write-failed");
455459

456460
if opts.repeat {

0 commit comments

Comments
 (0)