@@ -240,7 +240,7 @@ impl QuestionListWidget {
240
240
. send (
241
241
crate :: app_ui:: async_task_channel:: TaskRequest :: CodeRunRequest ( Request {
242
242
widget_name : self . get_widget_name ( ) ,
243
- request_id : random_key. clone ( ) ,
243
+ request_id : random_key,
244
244
content,
245
245
} ) ,
246
246
)
@@ -512,7 +512,7 @@ impl QuestionListWidget {
512
512
let k = self
513
513
. cache
514
514
. get_or_insert_mut ( model. clone ( ) , CachedQuestion :: default) ;
515
- ( k, model. clone ( ) )
515
+ ( k, model)
516
516
}
517
517
518
518
fn run_or_submit_code_event_handler (
@@ -620,7 +620,7 @@ impl super::Widget for QuestionListWidget {
620
620
let title = "Select Language" . to_string ( ) ;
621
621
let popup_key = generate_random_string ( 10 ) ;
622
622
self . task_map
623
- . insert ( popup_key. clone ( ) , ( model. clone ( ) , TaskType :: Edit ) ) ;
623
+ . insert ( popup_key. clone ( ) , ( model, TaskType :: Edit ) ) ;
624
624
let notif =
625
625
self . popup_list_notification ( content, title, popup_key, IndexSet :: new ( ) ) ;
626
626
return Ok ( Some ( notif) ) ;
@@ -878,7 +878,7 @@ impl super::Widget for QuestionListWidget {
878
878
ParsedResponse :: Unknown ( _) => "Unknown Error" . to_string ( ) ,
879
879
} ;
880
880
let notification = self . popup_paragraph_notification (
881
- k. to_string ( ) ,
881
+ k,
882
882
format ! ( "{} Status" , ( if is_submit { "Submit" } else { "Run" } ) ) ,
883
883
IndexSet :: new ( ) ,
884
884
) ;
@@ -977,7 +977,7 @@ impl super::Widget for QuestionListWidget {
977
977
selected_lang,
978
978
Some ( description) ,
979
979
Some ( selected_snippet) ,
980
- question_id. to_string ( ) ,
980
+ question_id,
981
981
) ;
982
982
let save_path = sf. get_save_path ( & dir) ;
983
983
sf. create_if_not_exists ( & dir) ?;
0 commit comments