fix clippy: remove unnecessary f32 cast in obj_to_f32
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
af6ecebaa6
commit
7d0e0b295b
+1
-1
@@ -441,7 +441,7 @@ fn get_page_height(doc: &Document, page_id: lopdf::ObjectId) -> Option<f32> {
|
||||
fn obj_to_f32(obj: &lopdf::Object) -> Option<f32> {
|
||||
match obj {
|
||||
lopdf::Object::Integer(i) => Some(*i as f32),
|
||||
lopdf::Object::Real(f) => Some(*f as f32),
|
||||
lopdf::Object::Real(f) => Some(*f),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user