Skip to content

Commit 4477f59

Browse files
committed
Style corrections
1 parent 7c3b533 commit 4477f59

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ pub fn get_available_backends() -> Vec<Backend> {
4242
let mut temp: i32 = 0;
4343
let err_val = af_get_available_backends(&mut temp as *mut c_int);
4444
HANDLE_ERROR(AfError::from(err_val));
45-
45+
4646
let mut b = Vec::new();
4747
if temp & 0b0100 == 0b0100 { b.push(Backend::OPENCL); }
4848
if temp & 0b0010 == 0b0010 { b.push(Backend::CUDA); }
4949
if temp & 0b0001 == 0b0001 { b.push(Backend::CPU); }
50-
50+
5151
b
5252
}
5353
}
@@ -67,4 +67,4 @@ pub fn get_active_backend() -> Backend {
6767
_ => panic!("Invalid backend retrieved, undefined behavior."),
6868
}
6969
}
70-
}
70+
}

0 commit comments

Comments
 (0)