let width = xr_to_pt(rectangle[Axis2::X].len());
let height = xr_to_pt(rectangle[Axis2::Y].len());
context.rectangle(x0, y0, width, height);
- let _ = context.fill();
+ context.fill().unwrap();
}
fn margin(cell: &DrawCell, axis: Axis2) -> usize {
color: Color,
) {
self.context.new_path();
- self.context.set_line_width(match stroke {
+ self.context.set_line_width(xr_to_pt(match stroke {
Stroke::Thick => LINE_WIDTH * 2,
Stroke::Thin => LINE_WIDTH / 2,
_ => LINE_WIDTH,
- } as f64);
+ }) as f64);
self.context.move_to(xr_to_pt(x0), xr_to_pt(y0));
self.context.line_to(xr_to_pt(x1), xr_to_pt(y1));
if !self.style.use_system_colors {