Skip to content

Commit

Permalink
cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
CGMossa committed Mar 16, 2024
1 parent a8ac1da commit b23a488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extendr-api/src/graphics/device_driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ pub trait DeviceDriver: std::marker::Sized {
// we just use `c.abs()`.
//
// [^1]: https://github.com/wch/r-source/blob/9bb47ca929c41a133786fa8fff7c70162bb75e50/src/include/R_ext/GraphicsDevice.h#L615-L617
if let Some(c) = std::char::from_u32(c.abs() as _) {
if let Some(c) = std::char::from_u32(c.unsigned_abs()) {
let data = ((*dd).deviceSpecific as *mut T).as_mut().unwrap();
let metric_info = data.char_metric(c, *gc, *dd);
*ascent = metric_info.ascent;
Expand Down

0 comments on commit b23a488

Please sign in to comment.