mirror of
https://github.com/uutils/coreutils
synced 2024-07-03 07:58:37 +00:00
lint: fix clippy::redundant_clone
of test_dd.rs
test_cp.rs
This commit is contained in:
parent
35c39a65e5
commit
ef8c379370
|
@ -3306,7 +3306,7 @@ fn test_symbolic_link_file() {
|
||||||
#[test]
|
#[test]
|
||||||
fn test_src_base_dot() {
|
fn test_src_base_dot() {
|
||||||
let ts = TestScenario::new(util_name!());
|
let ts = TestScenario::new(util_name!());
|
||||||
let at = ts.fixtures.clone();
|
let at = &ts.fixtures;
|
||||||
at.mkdir("x");
|
at.mkdir("x");
|
||||||
at.mkdir("y");
|
at.mkdir("y");
|
||||||
ts.ucmd()
|
ts.ucmd()
|
||||||
|
|
|
@ -1641,7 +1641,7 @@ fn test_seek_past_dev() {
|
||||||
fn test_reading_partial_blocks_from_fifo() {
|
fn test_reading_partial_blocks_from_fifo() {
|
||||||
// Create the FIFO.
|
// Create the FIFO.
|
||||||
let ts = TestScenario::new(util_name!());
|
let ts = TestScenario::new(util_name!());
|
||||||
let at = ts.fixtures.clone();
|
let at = &ts.fixtures;
|
||||||
at.mkfifo("fifo");
|
at.mkfifo("fifo");
|
||||||
let fifoname = at.plus_as_string("fifo");
|
let fifoname = at.plus_as_string("fifo");
|
||||||
|
|
||||||
|
@ -1682,7 +1682,7 @@ fn test_reading_partial_blocks_from_fifo() {
|
||||||
fn test_reading_partial_blocks_from_fifo_unbuffered() {
|
fn test_reading_partial_blocks_from_fifo_unbuffered() {
|
||||||
// Create the FIFO.
|
// Create the FIFO.
|
||||||
let ts = TestScenario::new(util_name!());
|
let ts = TestScenario::new(util_name!());
|
||||||
let at = ts.fixtures.clone();
|
let at = ts.fixtures;
|
||||||
at.mkfifo("fifo");
|
at.mkfifo("fifo");
|
||||||
let fifoname = at.plus_as_string("fifo");
|
let fifoname = at.plus_as_string("fifo");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user