Use slice::fill in io::Repeat implementation

Use the existing `fill` methods on slices instead of manually
writing the fill loop.
This commit is contained in:
DaniPopes
2025-02-13 10:04:10 +01:00
parent cfe9ffcd7c
commit 1a3efd27ab
2 changed files with 11 additions and 18 deletions

View File

@@ -302,6 +302,7 @@
#![feature(link_cfg)]
#![feature(linkage)]
#![feature(macro_metavar_expr_concat)]
#![feature(maybe_uninit_fill)]
#![feature(min_specialization)]
#![feature(must_not_suspend)]
#![feature(needs_panic_runtime)]