Extremely minor fixes

Only doing this to remedy a very minor annoyance of mine. These are not major (or even very helpful) changes by any measure.

- Removes an unneeded `use` statement
- Fixes a [deprecated](https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html) use of `panic!`
This commit is contained in:
Felix Mattick 2022-02-05 17:33:00 -06:00
parent 581eadfbeb
commit cea5218dc7
No known key found for this signature in database
GPG Key ID: 4E7A3D01471F32AB
3 changed files with 713 additions and 100 deletions

808
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,6 @@ use pathfinder_resources::ResourceLoader;
use pathfinder_resources::fs::FilesystemResourceLoader;
use std::cell::Cell;
use std::collections::VecDeque;
use std::mem;
use std::path::PathBuf;
use std::sync::Mutex;
use surfman::{SurfaceAccess, SurfaceType, declare_surfman};
@ -163,7 +162,7 @@ impl Window for WindowImpl {
fn metal_device(&self) -> metal::Device {
// FIXME(pcwalton): Remove once `surfman` upgrades `metal-rs` version.
unsafe {
mem::transmute(self.metal_device.0.clone())
std::mem::transmute(self.metal_device.0.clone())
}
}

View File

@ -36,7 +36,7 @@ fn main() {
Ok(bytes) => {
swf_bytes = bytes;
},
Err(e) => panic!(e)
Err(e) => panic!("{}", e)
}
} else {
// NOTE(jon): This is a version of the ghostscript tiger graphic flattened to a single