Solution for Using the ResultType
#![allow(unused_variables)] fn main() { let square = renderer.fill_rect(square_definition); match square { Ok(()) => {} Err(error) => println!("{}", error), } }
#![allow(unused_variables)] fn main() { let square = renderer.fill_rect(square_definition); match square { Ok(()) => {} Err(error) => println!("{}", error), } }