diff options
| author | Nick Hamann <nick@wabbo.org> | 2015-05-09 14:50:28 -0500 |
|---|---|---|
| committer | Nick Hamann <nick@wabbo.org> | 2015-05-09 14:50:28 -0500 |
| commit | a1898f890d907fadd45a1a927c8cd76dfb4ecdea (patch) | |
| tree | e4f7c7db03199ba317efa49c0841e2db919c1f17 /src/liballoc | |
| parent | dc630d01e3eae8ba05db98383119bc2ddbbb01c1 (diff) | |
| download | rust-a1898f890d907fadd45a1a927c8cd76dfb4ecdea.tar.gz rust-a1898f890d907fadd45a1a927c8cd76dfb4ecdea.zip | |
Convert #[lang="..."] to #[lang = "..."]
In my opinion this looks nicer, but also it matches the whitespace generally used for stability markers more closely.
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/heap.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/heap.rs b/src/liballoc/heap.rs index 86a04a0687a..83795a24c81 100644 --- a/src/liballoc/heap.rs +++ b/src/liballoc/heap.rs @@ -95,7 +95,7 @@ pub const EMPTY: *mut () = 0x1 as *mut (); /// The allocator for unique pointers. #[cfg(not(test))] -#[lang="exchange_malloc"] +#[lang = "exchange_malloc"] #[inline] unsafe fn exchange_malloc(size: usize, align: usize) -> *mut u8 { if size == 0 { @@ -108,7 +108,7 @@ unsafe fn exchange_malloc(size: usize, align: usize) -> *mut u8 { } #[cfg(not(test))] -#[lang="exchange_free"] +#[lang = "exchange_free"] #[inline] unsafe fn exchange_free(ptr: *mut u8, old_size: usize, align: usize) { deallocate(ptr, old_size, align); |
