1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

use 'Self' and derive 'Default' where possible

This commit is contained in:
Daniel Eades 2022-01-30 14:59:31 +01:00
parent 2f85610cc3
commit ba45fe312a
79 changed files with 445 additions and 474 deletions

View file

@ -13,8 +13,8 @@ impl Target {
// Creates a target that will naturally die after some time if not killed
// fast enough.
// This timeout avoids hanging failing tests.
fn new() -> Target {
Target {
fn new() -> Self {
Self {
child: Command::new("sleep")
.arg("30")
.spawn()