Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
theashraf committed Jan 13, 2025
1 parent 50c23df commit 3bf976f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions dotlottie-rs/src/lottie_renderer/thorvg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ impl Animation for TvgAnimation {
let data_cstr = CString::new(data).unwrap();

let data_ptr: *const i8 = data_cstr.as_ptr();
let data_len = data.as_bytes().len() as u32;
let data_len = data_cstr.as_bytes().len() as u32;
let mimetype_ptr: *const i8 = mimetype_cstr.as_ptr();

unsafe {
Expand All @@ -244,13 +244,7 @@ impl Animation for TvgAnimation {

#[cfg(feature = "thorvg-v0")]
{
tvg::tvg_picture_load_data(
self.raw_paint,
data_ptr,
data_len,
mimetype_ptr,
copy,
)
tvg::tvg_picture_load_data(self.raw_paint, data_ptr, data_len, mimetype_ptr, copy)
}
}
.into_result()
Expand Down

0 comments on commit 3bf976f

Please sign in to comment.