File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 66
66
match & * self . state . borrow ( ) {
67
67
PromiseState :: Pending => {
68
68
* self . then_callback . borrow_mut ( ) = Some ( Box :: new ( move |value| {
69
- let result = f ( value. clone ( ) ) ;
69
+ let result = f ( value) ;
70
70
new_promise_clone. fulfill ( result) ;
71
71
} ) ) ;
72
72
let new_promise_for_catch = new_promise. clone ( ) ;
@@ -135,7 +135,7 @@ where
135
135
. catch ( move |reason| {
136
136
if !* rejected_clone_for_catch. borrow ( ) {
137
137
* rejected_clone_for_catch. borrow_mut ( ) = true ;
138
- next_promise_clone_for_catch. reject ( reason. clone ( ) ) ;
138
+ next_promise_clone_for_catch. reject ( reason) ;
139
139
}
140
140
} ) ;
141
141
}
@@ -164,7 +164,7 @@ where
164
164
} )
165
165
. catch ( move |err| {
166
166
if first_error_clone. borrow ( ) . is_none ( ) {
167
- * first_error_clone. borrow_mut ( ) = Some ( err. clone ( ) ) ;
167
+ * first_error_clone. borrow_mut ( ) = Some ( err) ;
168
168
}
169
169
170
170
* remaining_clone_for_catch. borrow_mut ( ) -= 1 ;
You can’t perform that action at this time.
0 commit comments