chore: lint fixes acc to rustfmt

This commit is contained in:
Prateek Sunal
2024-01-15 18:25:38 +05:30
parent 8a95f7c727
commit bd68411e31
2 changed files with 4 additions and 4 deletions

View File

@@ -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<String>) -> *mut *mut i8 {

View File

@@ -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,
};