projects
/
Mitarbeiter
/
Tim-Zeitz
/
stud-rust-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor
[Mitarbeiter/Tim-Zeitz/stud-rust-base.git]
/
src
/
bin
/
example.rs
diff --git
a/src/bin/example.rs
b/src/bin/example.rs
index 68056b8c014bc0c2b99f80a884472ac977b31fcb..667bff3933bf0c34658a6be642cf535e9933a067 100644
(file)
--- a/
src/bin/example.rs
+++ b/
src/bin/example.rs
@@
-3,10
+3,7
@@
use stud_rust_base::{io::*, time::report_time, types::*};
use std::{env, error::Error, path::Path};
fn main() -> Result<(), Box<dyn Error>> {
use std::{env, error::Error, path::Path};
fn main() -> Result<(), Box<dyn Error>> {
- let mut args = env::args();
- args.next();
-
- let arg = &args.next().expect("No directory arg given");
+ let arg = &env::args().skip(1).next().expect("No directory arg given");
let path = Path::new(arg);
let first_out = Vec::<EdgeId>::load_from(path.join("first_out"))?;
let path = Path::new(arg);
let first_out = Vec::<EdgeId>::load_from(path.join("first_out"))?;