Skip to content

Commit 65ac84e

Browse files
committed
Bump to 0.3.3
1 parent d735918 commit 65ac84e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "tempdir"
4-
version = "0.3.2"
4+
version = "0.3.3"
55
authors = ["The Rust Project Developers"]
66
license = "MIT/Apache-2.0"
77
readme = "README.md"
@@ -14,4 +14,4 @@ dropped.
1414
"""
1515

1616
[dependencies]
17-
rand = "0.2"
17+
rand = "0.3"

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(std_misc, io)]
11+
#![feature(convert, io)]
1212
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
1313
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
1414
html_root_url = "http://doc.rust-lang.org/tempdir/")]
@@ -19,7 +19,7 @@ extern crate rand;
1919
use std::env;
2020
use std::io::{self, Error, ErrorKind};
2121
use std::fs;
22-
use std::path::{self, PathBuf, AsPath};
22+
use std::path::{self, PathBuf, Path};
2323
use rand::{thread_rng, Rng};
2424

2525
/// A wrapper for a path to temporary directory implementing automatic
@@ -43,10 +43,10 @@ impl TempDir {
4343
/// deleted once the returned wrapper is destroyed.
4444
///
4545
/// If no directory can be created, `Err` is returned.
46-
pub fn new_in<P: AsPath + ?Sized>(tmpdir: &P, prefix: &str)
47-
-> io::Result<TempDir> {
46+
pub fn new_in<P: AsRef<Path>>(tmpdir: P, prefix: &str)
47+
-> io::Result<TempDir> {
4848
let storage;
49-
let mut tmpdir = tmpdir.as_path();
49+
let mut tmpdir = tmpdir.as_ref();
5050
if !tmpdir.is_absolute() {
5151
let cur_dir = try!(env::current_dir());
5252
storage = cur_dir.join(tmpdir);

0 commit comments

Comments
 (0)