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:
parent
581eadfbeb
commit
cea5218dc7
File diff suppressed because it is too large
Load Diff
|
@ -26,7 +26,6 @@ use pathfinder_resources::ResourceLoader;
|
||||||
use pathfinder_resources::fs::FilesystemResourceLoader;
|
use pathfinder_resources::fs::FilesystemResourceLoader;
|
||||||
use std::cell::Cell;
|
use std::cell::Cell;
|
||||||
use std::collections::VecDeque;
|
use std::collections::VecDeque;
|
||||||
use std::mem;
|
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
use surfman::{SurfaceAccess, SurfaceType, declare_surfman};
|
use surfman::{SurfaceAccess, SurfaceType, declare_surfman};
|
||||||
|
@ -163,7 +162,7 @@ impl Window for WindowImpl {
|
||||||
fn metal_device(&self) -> metal::Device {
|
fn metal_device(&self) -> metal::Device {
|
||||||
// FIXME(pcwalton): Remove once `surfman` upgrades `metal-rs` version.
|
// FIXME(pcwalton): Remove once `surfman` upgrades `metal-rs` version.
|
||||||
unsafe {
|
unsafe {
|
||||||
mem::transmute(self.metal_device.0.clone())
|
std::mem::transmute(self.metal_device.0.clone())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ fn main() {
|
||||||
Ok(bytes) => {
|
Ok(bytes) => {
|
||||||
swf_bytes = bytes;
|
swf_bytes = bytes;
|
||||||
},
|
},
|
||||||
Err(e) => panic!(e)
|
Err(e) => panic!("{}", e)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// NOTE(jon): This is a version of the ghostscript tiger graphic flattened to a single
|
// NOTE(jon): This is a version of the ghostscript tiger graphic flattened to a single
|
||||||
|
|
Loading…
Reference in New Issue