diff --git a/src/rust/src/common.rs b/src/rust/src/common.rs index 40838c4b..d0d25cc5 100644 --- a/src/rust/src/common.rs +++ b/src/rust/src/common.rs @@ -753,7 +753,7 @@ pub struct CcxOptions { } fn get_raw_string(str: &str) -> *mut i8 { - CString::new(str.clone()).unwrap().into_raw() + CString::new(str).unwrap().into_raw() } fn get_raw_strings(strs: Vec) -> *mut *mut i8 { diff --git a/src/rust/src/decoder/window.rs b/src/rust/src/decoder/window.rs index fbd4d024..86870919 100644 --- a/src/rust/src/decoder/window.rs +++ b/src/rust/src/decoder/window.rs @@ -441,13 +441,13 @@ impl PenStyle { }; let color = PenColor { - /// White(2,2,2) i.e 10,10,10 i.e 42 + // White(2,2,2) i.e 10,10,10 i.e 42 fg_color: 42, fg_opacity: Opacity::Solid, - /// Either N/A or black, still always 0 + // Either N/A or black, still always 0 bg_color: 0, bg_opacity, - /// Either N/A or black, still always 0 + // Either N/A or black, still always 0 edge_color: 0, };