Skip to content

Commit a0d13f6

Browse files
committed
rust fmt changes from recent updates
1 parent c987383 commit a0d13f6

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

build.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,14 @@ fn blob_backends(conf: &Config, build_dir: &std::path::PathBuf) -> (Vec<String>,
307307
};
308308

309309
backend_dirs.push(afpath.join("lib").to_str().to_owned().unwrap().to_string());
310-
backend_dirs.push(afpath.join("lib64").to_str().to_owned().unwrap().to_string());
310+
backend_dirs.push(
311+
afpath
312+
.join("lib64")
313+
.to_str()
314+
.to_owned()
315+
.unwrap()
316+
.to_string(),
317+
);
311318

312319
if !cfg!(target_os = "windows") {
313320
backend_dirs.push(String::from("/usr/local/lib"));

examples/fft.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
use arrayfire::*;
22
use num::Complex;
33

4-
type Complex32 = Complex<f32>;
5-
6-
#[allow(unused_must_use)]
7-
#[allow(unused_variables)]
84
fn main() {
95
set_device(0);
106
info();
@@ -21,7 +17,7 @@ fn main() {
2117
Complex::new(0.0, 2.0),
2218
Complex::new(0.0, 2.0),
2319
Complex::new(0.0, 2.0),
24-
Complex::new(0.0, 2.0)
20+
Complex::new(0.0, 2.0),
2521
];
2622

2723
let signal = Array::new(&values, dims);

0 commit comments

Comments
 (0)