util: C-wrapped data don't need to be cloneable

This commit is contained in:
Dorota Czaplejewicz
2019-10-10 11:39:21 +00:00
parent 8ab3a2b8d3
commit 89b56ddccf
3 changed files with 29 additions and 13 deletions

View File

@ -27,6 +27,8 @@ use ::action::Action;
use ::float_ord::FloatOrd;
use ::keyboard::*;
use ::util::CloneOwned;
/// Gathers stuff defined in C or called by C
pub mod c {
use super::*;
@ -270,7 +272,7 @@ pub mod c {
) {
let layout = unsafe { &mut *layout };
let view_name = match key.to_owned().action {
let view_name = match key.clone_owned().action {
Action::SetLevel(name) => {
Some(name.clone())
},