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

rustfmt the recent change

This commit is contained in:
Sylvestre Ledru 2021-04-24 12:46:06 +02:00
parent 5f61848a38
commit 3ac481e4d3
4 changed files with 7 additions and 12 deletions

View file

@ -397,10 +397,10 @@ fn test_dev_full_show_all() {
#[cfg(unix)] #[cfg(unix)]
fn test_domain_socket() { fn test_domain_socket() {
use std::io::prelude::*; use std::io::prelude::*;
use std::sync::{Arc, Barrier};
use std::thread; use std::thread;
use tempdir::TempDir; use tempdir::TempDir;
use unix_socket::UnixListener; use unix_socket::UnixListener;
use std::sync::{Barrier, Arc};
let dir = TempDir::new("unix_socket").expect("failed to create dir"); let dir = TempDir::new("unix_socket").expect("failed to create dir");
let socket_path = dir.path().join("sock"); let socket_path = dir.path().join("sock");

View file

@ -585,8 +585,8 @@ fn test_check_silent() {
#[test] #[test]
fn test_trailing_separator() { fn test_trailing_separator() {
new_ucmd!() new_ucmd!()
.args(&["-t", "x", "-k", "1,1"]) .args(&["-t", "x", "-k", "1,1"])
.pipe_in("aax\naaa\n") .pipe_in("aax\naaa\n")
.succeeds() .succeeds()
.stdout_is("aax\naaa\n"); .stdout_is("aax\naaa\n");
} }

View file

@ -346,9 +346,5 @@ fn test_negative_indexing() {
#[test] #[test]
fn test_sleep_interval() { fn test_sleep_interval() {
new_ucmd!() new_ucmd!().arg("-s").arg("10").arg(FOOBAR_TXT).succeeds();
.arg("-s")
.arg("10")
.arg(FOOBAR_TXT)
.succeeds();
} }

View file

@ -79,4 +79,3 @@ fn test_failed_incorrect_arg() {
let (_at, mut ucmd) = at_and_ucmd!(); let (_at, mut ucmd) = at_and_ucmd!();
ucmd.args(&["-s", "+5A", TFILE1]).fails(); ucmd.args(&["-s", "+5A", TFILE1]).fails();
} }