11use expectorate:: assert_contents;
22use newline_converter:: dos2unix;
3- use tempdir :: TempDir ;
3+ use tempfile :: TempDir ;
44
55#[ test]
66fn test_simple ( ) {
77 let input = concat ! ( env!( "CARGO_MANIFEST_DIR" ) , "/../example.json" ) ;
88
9- let temp = TempDir :: new ( "cargo-typify" ) . unwrap ( ) ;
9+ let temp = TempDir :: new ( ) . unwrap ( ) ;
1010 let input_file = temp. path ( ) . join ( "simple.json" ) ;
1111 std:: fs:: copy ( input, & input_file) . unwrap ( ) ;
1212
@@ -26,7 +26,7 @@ fn test_simple() {
2626fn test_default_output ( ) {
2727 let input = concat ! ( env!( "CARGO_MANIFEST_DIR" ) , "/../example.json" ) ;
2828
29- let temp = TempDir :: new ( "cargo-typify" ) . unwrap ( ) ;
29+ let temp = TempDir :: new ( ) . unwrap ( ) ;
3030 let output_file = temp. path ( ) . join ( "output.rs" ) ;
3131
3232 assert_cmd:: cargo:: cargo_bin_cmd!( )
@@ -59,7 +59,7 @@ fn test_no_builder_stdout() {
5959fn test_builder ( ) {
6060 let input = concat ! ( env!( "CARGO_MANIFEST_DIR" ) , "/../example.json" ) ;
6161
62- let temp = TempDir :: new ( "cargo-typify" ) . unwrap ( ) ;
62+ let temp = TempDir :: new ( ) . unwrap ( ) ;
6363 let output_file = temp. path ( ) . join ( "output.rs" ) ;
6464
6565 assert_cmd:: cargo:: cargo_bin_cmd!( )
@@ -82,7 +82,7 @@ fn test_builder() {
8282fn test_derive ( ) {
8383 let input = concat ! ( env!( "CARGO_MANIFEST_DIR" ) , "/../example.json" ) ;
8484
85- let temp = TempDir :: new ( "cargo-typify" ) . unwrap ( ) ;
85+ let temp = TempDir :: new ( ) . unwrap ( ) ;
8686 let output_file = temp. path ( ) . join ( "output.rs" ) ;
8787
8888 assert_cmd:: cargo:: cargo_bin_cmd!( )
@@ -107,7 +107,7 @@ fn test_derive() {
107107fn test_attr ( ) {
108108 let input = concat ! ( env!( "CARGO_MANIFEST_DIR" ) , "/../example.json" ) ;
109109
110- let temp = TempDir :: new ( "cargo-typify" ) . unwrap ( ) ;
110+ let temp = TempDir :: new ( ) . unwrap ( ) ;
111111 let output_file = temp. path ( ) . join ( "output.rs" ) ;
112112
113113 assert_cmd:: cargo:: cargo_bin_cmd!( )
@@ -132,7 +132,7 @@ fn test_attr() {
132132fn test_multi_derive ( ) {
133133 let input = concat ! ( env!( "CARGO_MANIFEST_DIR" ) , "/../example.json" ) ;
134134
135- let temp = TempDir :: new ( "cargo-typify" ) . unwrap ( ) ;
135+ let temp = TempDir :: new ( ) . unwrap ( ) ;
136136 let output_file = temp. path ( ) . join ( "output.rs" ) ;
137137
138138 assert_cmd:: cargo:: cargo_bin_cmd!( )
@@ -173,7 +173,7 @@ fn test_help() {
173173fn test_btree_map ( ) {
174174 let input = concat ! ( env!( "CARGO_MANIFEST_DIR" ) , "/../example.json" ) ;
175175
176- let temp = TempDir :: new ( "cargo-typify" ) . unwrap ( ) ;
176+ let temp = TempDir :: new ( ) . unwrap ( ) ;
177177 let output_file = temp. path ( ) . join ( "output.rs" ) ;
178178
179179 assert_cmd:: cargo:: cargo_bin_cmd!( )
0 commit comments