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:
parent
2f85610cc3
commit
ba45fe312a
79 changed files with 445 additions and 474 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue