We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55c533b commit 382b68fCopy full SHA for 382b68f
src/main.rs
@@ -3,7 +3,7 @@ use std::env;
3
use termion::color::{Bg, Fg, Reset, Rgb};
4
5
fn main() {
6
- if let Some(filename) = env::args().nth(1) {
+ if let Some(filename) = env::args_os().nth(1) {
7
let image = image::open(&filename).unwrap();
8
let (height, width) = image.dimensions();
9
// Each row of characters in the terminal corresponds to two rows in the image.
0 commit comments