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"
8989explicit_deref_methods = " warn"
9090if_not_else = " warn"
9191ignored_unit_patterns = " warn"
92+ implicit_clone = " warn"
9293inconsistent_struct_constructor = " warn"
9394manual_assert = " warn"
9495manual_let_else = " warn"
@@ -99,7 +100,6 @@ ref_as_ptr = "warn"
99100ref_option = " warn"
100101semicolon_if_nothing_returned = " warn"
101102separated_literal_suffix = " warn"
102- string_to_string = " warn"
103103transmute_ptr_to_ptr = " warn"
104104uninlined_format_args = " warn"
105105unreadable_literal = " warn"
Original file line number Diff line number Diff line change 1- use alloc:: borrow:: ToOwned ;
21use alloc:: boxed:: Box ;
32use alloc:: ffi:: CString ;
43use alloc:: string:: { String , ToString } ;
@@ -225,7 +224,7 @@ pub(crate) fn init() {
225224 . unwrap ( )
226225 . mount (
227226 & mount_point,
228- Box :: new ( UhyveDirectory :: new ( Some ( mount_point. to_owned ( ) ) ) ) ,
227+ Box :: new ( UhyveDirectory :: new ( Some ( mount_point. clone ( ) ) ) ) ,
229228 )
230229 . expect ( "Mount failed. Duplicate mount_point?" ) ;
231230 }
You can’t perform that action at this time.
0 commit comments