cleanup: remove unneeded source format in read instruction
The image crate is able to infer the format, so that data is redundant
This commit is contained in:
parent
10886be00a
commit
d79383a7df
4 changed files with 1 additions and 10 deletions
|
@ -2,7 +2,7 @@ pub mod read {
|
|||
use image::{io::Reader as ImageReader, DynamicImage};
|
||||
use ir::instruction::read::{Read, SourceType};
|
||||
|
||||
pub fn read(Read { source, .. }: Read) -> DynamicImage {
|
||||
pub fn read(Read { source }: Read) -> DynamicImage {
|
||||
// TODO: actual error handling
|
||||
let img = ImageReader::open(match source {
|
||||
SourceType::File(path) => path,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue