diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-08-12 18:12:22 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-08-12 18:12:22 +0300 |
commit | 2b61d51e919caec4041e3170531890c0e115e21e (patch) | |
tree | 896c486fabe6efd1f46c2900c5d9824812d71608 /video | |
parent | 35b42b88d9d4f797c9f2b8dbbc9da0e5089c0820 (diff) |
Remove unnecessary `unsafe` blocks for `Buffer::as_ptr()`
Diffstat (limited to 'video')
-rw-r--r-- | video/closedcaption/src/cea608overlay/imp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/closedcaption/src/cea608overlay/imp.rs b/video/closedcaption/src/cea608overlay/imp.rs index a1200bcaa..00ca3036c 100644 --- a/video/closedcaption/src/cea608overlay/imp.rs +++ b/video/closedcaption/src/cea608overlay/imp.rs @@ -196,7 +196,7 @@ impl Cea608Overlay { // Pass ownership of the buffer to the cairo surface but keep around // a raw pointer so we can later retrieve it again when the surface // is done - let buffer_ptr = unsafe { buffer.buffer().as_ptr() }; + let buffer_ptr = buffer.buffer().as_ptr(); let surface = cairo::ImageSurface::create_for_data( buffer, cairo::Format::ARgb32, |