1
Fork 0
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:
Sylvestre Ledru 2021-01-19 08:15:53 +01:00 committed by GitHub
parent 013bb285cd
commit e331186fee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 27 additions and 101 deletions

View file

@ -1,4 +1,3 @@
extern crate tempfile;
#[cfg(unix)]
extern crate unix_socket;

View file

@ -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() {

View file

@ -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";

View file

@ -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() {

View file

@ -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");