File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ fn new() {
36
36
#[ test]
37
37
fn new_with_default_template ( ) {
38
38
let tmp = tempfile:: tempdir ( ) . unwrap ( ) ;
39
- let path = Utf8PathBuf :: from_path_buf ( tmp. into_path ( ) ) . expect ( "Non Utf8 Path" ) ;
39
+ let path = Utf8PathBuf :: from_path_buf ( tmp. keep ( ) ) . expect ( "Non Utf8 Path" ) ;
40
40
41
41
let creator = super :: Creator :: new (
42
42
super :: NewOptions {
@@ -66,7 +66,7 @@ fn new_with_default_template() {
66
66
#[ test]
67
67
fn new_with_javascript_template ( ) {
68
68
let tmp = tempfile:: tempdir ( ) . unwrap ( ) ;
69
- let path = Utf8PathBuf :: from_path_buf ( tmp. into_path ( ) ) . expect ( "Non Utf8 Path" ) ;
69
+ let path = Utf8PathBuf :: from_path_buf ( tmp. keep ( ) ) . expect ( "Non Utf8 Path" ) ;
70
70
71
71
let creator = super :: Creator :: new (
72
72
super :: NewOptions {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ use hexpm::{
8
8
version:: { Range , Version } ,
9
9
} ;
10
10
use pubgrub:: { Dependencies , Map } ;
11
- use thiserror:: Error ;
11
+ use thiserror;
12
12
13
13
pub type PackageVersions = HashMap < String , Version > ;
14
14
@@ -192,7 +192,7 @@ pub trait PackageFetcher {
192
192
fn get_dependencies ( & self , package : & str ) -> Result < Rc < hexpm:: Package > , PackageFetchError > ;
193
193
}
194
194
195
- #[ derive( Debug , Error ) ]
195
+ #[ derive( Debug , thiserror :: Error ) ]
196
196
pub enum PackageFetchError {
197
197
#[ error( "{0}" ) ]
198
198
ApiError ( hexpm:: ApiError ) ,
You can’t perform that action at this time.
0 commit comments