File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ default_trait_access = "warn"
89
89
explicit_deref_methods = " warn"
90
90
if_not_else = " warn"
91
91
ignored_unit_patterns = " warn"
92
+ implicit_clone = " warn"
92
93
inconsistent_struct_constructor = " warn"
93
94
manual_assert = " warn"
94
95
manual_let_else = " warn"
@@ -99,7 +100,6 @@ ref_as_ptr = "warn"
99
100
ref_option = " warn"
100
101
semicolon_if_nothing_returned = " warn"
101
102
separated_literal_suffix = " warn"
102
- string_to_string = " warn"
103
103
transmute_ptr_to_ptr = " warn"
104
104
uninlined_format_args = " warn"
105
105
unreadable_literal = " warn"
Original file line number Diff line number Diff line change 1
- use alloc:: borrow:: ToOwned ;
2
1
use alloc:: boxed:: Box ;
3
2
use alloc:: ffi:: CString ;
4
3
use alloc:: string:: { String , ToString } ;
@@ -225,7 +224,7 @@ pub(crate) fn init() {
225
224
. unwrap ( )
226
225
. mount (
227
226
& mount_point,
228
- Box :: new ( UhyveDirectory :: new ( Some ( mount_point. to_owned ( ) ) ) ) ,
227
+ Box :: new ( UhyveDirectory :: new ( Some ( mount_point. clone ( ) ) ) ) ,
229
228
)
230
229
. expect ( "Mount failed. Duplicate mount_point?" ) ;
231
230
}
You can’t perform that action at this time.
0 commit comments