mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
unbreak build with rustc 1.32: force tempfile 3.1.0 (#1695)
This commit is contained in:
parent
013bb285cd
commit
e331186fee
9 changed files with 27 additions and 101 deletions
|
@ -1,4 +1,3 @@
|
|||
extern crate tempfile;
|
||||
#[cfg(unix)]
|
||||
extern crate unix_socket;
|
||||
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
#[cfg(not(windows))]
|
||||
use std::fs;
|
||||
|
||||
use std::path::Path;
|
||||
extern crate tempfile;
|
||||
use self::tempfile::tempdir;
|
||||
use crate::common::util::*;
|
||||
use std::env;
|
||||
use std::path::Path;
|
||||
use tempfile::tempdir;
|
||||
|
||||
#[test]
|
||||
fn test_env_help() {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
use crate::common::util::*;
|
||||
|
||||
extern crate tempfile;
|
||||
use self::tempfile::tempdir;
|
||||
use tempfile::tempdir;
|
||||
|
||||
static TEST_TEMPLATE1: &'static str = "tempXXXXXX";
|
||||
static TEST_TEMPLATE2: &'static str = "temp";
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
use crate::common::util::*;
|
||||
|
||||
use std::fs;
|
||||
extern crate tempfile;
|
||||
use self::tempfile::tempdir;
|
||||
use std::fs;
|
||||
use tempfile::tempdir;
|
||||
|
||||
#[test]
|
||||
fn test_sync_default() {
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
#![allow(dead_code)]
|
||||
extern crate tempfile;
|
||||
|
||||
use self::tempfile::TempDir;
|
||||
use std::env;
|
||||
use std::ffi::OsStr;
|
||||
use std::fs::{self, File, OpenOptions};
|
||||
|
@ -16,6 +12,7 @@ use std::rc::Rc;
|
|||
use std::str::from_utf8;
|
||||
use std::thread::sleep;
|
||||
use std::time::Duration;
|
||||
use tempfile::TempDir;
|
||||
|
||||
#[cfg(windows)]
|
||||
static PROGNAME: &str = concat!(env!("CARGO_PKG_NAME"), ".exe");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue