Skip to content

Commit

Permalink
Merge pull request #111 from rye/clippy
Browse files Browse the repository at this point in the history
Fix two clippy::restriction lints
  • Loading branch information
rye committed Jan 31, 2021
2 parents de44f83 + a955752 commit 3d57b29
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/pdf.rs
Expand Up @@ -186,7 +186,7 @@ impl core::convert::TryFrom<lopdf::content::Operation> for Operation {
fn to_f64(object: &Object) -> Option<f64> {
match object {
Object::Real(x) => Some(*x),
Object::Integer(x) => Some(*x as f64),
Object::Integer(x) => f64::try_from(i32::try_from(*x).ok()?).ok(),
_ => None,
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/space.rs
Expand Up @@ -84,8 +84,6 @@ where
.filter(|e| e.applies_at(time))
.collect();

eprintln!("{}, x{}", current_parts.len(), current_exceptions.len());

if !current_exceptions.is_empty() {
let exception = current_exceptions[0];

Expand Down

0 comments on commit 3d57b29

Please sign in to comment.