We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ca15c9 commit 4aa211eCopy full SHA for 4aa211e
examples/export-svg.rs
@@ -107,7 +107,7 @@ fn main() -> Result<(), String> {
107
.unwrap_or_else(|| "track.svg".to_string());
108
let scale = matches.opt_get_default("scale", ExportScale::default())
109
.map_err(|err| format!("Invalid scale option value: {}", err))?;
110
- let filename = match matches.free.get(0) {
+ let filename = match matches.free.first() {
111
Some(val) => val,
112
None => {
113
eprintln!("Usage: {} [options] <input-file.rgt>", program);
0 commit comments