diff options
author | Ondřej Čertík <ondrej@certik.us> | 2020-01-12 20:39:56 -0700 |
---|---|---|
committer | Ondřej Čertík <ondrej@certik.us> | 2020-01-12 21:46:16 -0700 |
commit | 0a1d8009bf678d8ea457f124c4e3adf6b6addf75 (patch) | |
tree | 9d1f9262803c318a6fd50630c0a3a4f9a2fefda0 /src/main.rs | |
parent | 4f4c692ae97dfbf5bf769085e32bae5c7a9a7f5c (diff) | |
download | fpm-0a1d8009bf678d8ea457f124c4e3adf6b6addf75.tar.gz fpm-0a1d8009bf678d8ea457f124c4e3adf6b6addf75.zip |
Simplify the Rust code
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 9252c56..2a75e85 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,9 +30,7 @@ fn build() { for file in &files { println!("File: {}", file.to_str().unwrap()); if !file.to_str().unwrap().ends_with("main.f90") { - let s1:String = files2.to_string(); - let s2:String = file.to_str().unwrap().to_string(); - files2 = s1 + " " + &s2; + files2 = files2 + " " + file.to_str().unwrap(); } } println!("Files: {:?}", files); |