Skip to content

Commit 143cd7a

Browse files
committed
cargo fmt
1 parent cc4d261 commit 143cd7a

File tree

4 files changed

+4
-15
lines changed

4 files changed

+4
-15
lines changed

examples/caps/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fn main() {
2525
println!("Headless: {:?}", device.is_headless());
2626
println!("D24S8: {:?}", device.d24_s8_supported());
2727
}
28-
println!("maxBufferLength: {} Mb", device.max_buffer_length()>>20);
28+
println!("maxBufferLength: {} Mb", device.max_buffer_length() >> 20);
2929
println!(
3030
"Indirect argument buffer: {:?}",
3131
device.argument_buffers_support()

src/device.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ use block::{Block, ConcreteBlock};
1111
use foreign_types::ForeignType;
1212
use objc::runtime::{Object, NO, YES};
1313

14-
use std::{
15-
ffi::CStr,
16-
os::raw::c_char,
17-
path::Path,
18-
ptr,
19-
};
14+
use std::{ffi::CStr, os::raw::c_char, path::Path, ptr};
2015

2116
#[allow(non_camel_case_types)]
2217
#[repr(u64)]
@@ -1705,7 +1700,6 @@ impl DeviceRef {
17051700
src: &str,
17061701
options: &CompileOptionsRef,
17071702
) -> Result<Library, String> {
1708-
17091703
let source = nsstring_from_str(src);
17101704
unsafe {
17111705
let mut err: *mut Object = ptr::null_mut();

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@ use std::{
2121
borrow::{Borrow, ToOwned},
2222
marker::PhantomData,
2323
mem,
24-
os::raw::c_void,
2524
ops::Deref,
25+
os::raw::c_void,
2626
};
2727

2828
use core_graphics_types::{base::CGFloat, geometry::CGSize};
2929
use foreign_types::ForeignType;
3030
use objc::runtime::{Object, NO, YES};
3131

32-
3332
#[cfg(target_pointer_width = "64")]
3433
pub type NSInteger = i64;
3534
#[cfg(not(target_pointer_width = "64"))]

src/sampler.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
55
// http://opensource.org/licenses/MIT>, at your option. This file may not be
66
// copied, modified, or distributed except according to those terms.
77

8-
use super::{
9-
NSUInteger,
10-
depthstencil::MTLCompareFunction,
11-
DeviceRef,
12-
};
8+
use super::{depthstencil::MTLCompareFunction, DeviceRef, NSUInteger};
139

1410
#[repr(u64)]
1511
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)]

0 commit comments

Comments
 (0)