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
updates, clippy, formatting
[Mitarbeiter/Tim-Zeitz/stud-rust-base.git]
/
src
/
bin
/
example.rs
diff --git
a/src/bin/example.rs
b/src/bin/example.rs
index 667bff3933bf0c34658a6be642cf535e9933a067..e1eb51f5362223956d84d3ddee8d86ef6c51d088 100644
(file)
--- a/
src/bin/example.rs
+++ b/
src/bin/example.rs
@@
-3,7
+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 arg = &env::args().
skip(1).next(
).expect("No directory arg given");
+ let arg = &env::args().
nth(1
).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"))?;