mirror of
https://github.com/penpot/penpot.git
synced 2026-08-07 13:29:07 +00:00
🔧 Fix lint error (rust)
This commit is contained in:
parent
74d00473e9
commit
9183dbbc43
@ -292,7 +292,7 @@ pub extern "C" fn set_shape_text_content() {
|
|||||||
with_current_shape_mut!(state, |shape: &mut Shape| {
|
with_current_shape_mut!(state, |shape: &mut Shape| {
|
||||||
let raw_text_data = RawParagraph::try_from(&bytes).unwrap();
|
let raw_text_data = RawParagraph::try_from(&bytes).unwrap();
|
||||||
|
|
||||||
if let Err(_) = shape.add_paragraph(raw_text_data.into()) {
|
if shape.add_paragraph(raw_text_data.into()).is_err() {
|
||||||
println!("Error with set_shape_text_content on {:?}", shape.id);
|
println!("Error with set_shape_text_content on {:?}", shape.id);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user