Skip to content

Commit

Permalink
Merge pull request #166 from thechampagne/master
Browse files Browse the repository at this point in the history
remove unnecessary heap allocation
  • Loading branch information
Dacode45 authored Feb 7, 2024
2 parents 7adbf74 + 2377762 commit 60c20e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ pub fn run(rl: &mut RaylibHandle, thread: &RaylibThread) -> crate::SampleOut {
let droppedFiles = rl.get_dropped_files();

if (droppedFiles.len() > 0) && droppedFiles[0].ends_with(".rgs") {
rl.gui_load_style(Some(&CString::new(droppedFiles[0].clone()).unwrap()));
rl.gui_load_style(Some(&CString::new(droppedFiles[0].as_bytes()).unwrap()));
}

rl.clear_dropped_files();
Expand Down

0 comments on commit 60c20e6

Please sign in to comment.