aboutsummaryrefslogtreecommitdiff
path: root/src/utils.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-04-03 10:06:12 +0100
committerAkshay <[email protected]>2021-04-03 10:06:41 +0100
commit62d9de6a368a50dcb62b2b97a5fb02a3858b0977 (patch)
treea14169afb19a08ff5e3aa54eabda023e9c178853 /src/utils.rs
parentc97b91744ef37baa76b4a91deb1a9f48aeb3fd6a (diff)
fix reflect figure
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.rs b/src/utils.rs
index 6819e71..bee5782 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -106,5 +106,5 @@ pub fn load_file<P: AsRef<Path>>(path: P) -> Result<Image, io::Error> {
106 .open(&path)?; 106 .open(&path)?;
107 let mut buf = Vec::new(); 107 let mut buf = Vec::new();
108 image.read_to_end(&mut buf)?; 108 image.read_to_end(&mut buf)?;
109 Ok(Image::decode(&mut (Cursor::new(buf))).unwrap()) // TODO: obi erro 109 Ok(Image::decode(&mut (Cursor::new(buf))).unwrap()) // TODO: obi error
110} 110}