Skip to content

Commit 62d1db1

Browse files
committed
Long lines
1 parent 07c39b1 commit 62d1db1

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/libcore/ptr.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ pub unsafe fn copy_memory<T>(dst: *mut T, src: *const T, count: uint) {
134134
* and destination may overlap.
135135
*/
136136
#[inline(always)]
137-
pub unsafe fn copy_overlapping_memory<T>(dst: *mut T, src: *const T, count: uint) {
137+
pub unsafe fn copy_overlapping_memory<T>(dst: *mut T, src: *const T,
138+
count: uint) {
138139
let n = count * sys::size_of::<T>();
139140
libc_::memmove(dst as *mut c_void, src as *c_void, n as size_t);
140141
}

src/libcore/vec.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2085,7 +2085,8 @@ pub mod raw {
20852085
* Copies `count` bytes from `src` to `dst`. The source and destination
20862086
* may overlap.
20872087
*/
2088-
pub unsafe fn copy_memory<T>(dst: &[mut T], src: &[const T], count: uint) {
2088+
pub unsafe fn copy_memory<T>(dst: &[mut T], src: &[const T],
2089+
count: uint) {
20892090
assert dst.len() >= count;
20902091
assert src.len() >= count;
20912092

@@ -2102,7 +2103,8 @@ pub mod raw {
21022103
* Copies `count` bytes from `src` to `dst`. The source and destination
21032104
* may overlap.
21042105
*/
2105-
pub unsafe fn copy_overlapping_memory<T>(dst: &[mut T], src: &[const T], count: uint) {
2106+
pub unsafe fn copy_overlapping_memory<T>(dst: &[mut T], src: &[const T],
2107+
count: uint) {
21062108
assert dst.len() >= count;
21072109
assert src.len() >= count;
21082110

@@ -2178,7 +2180,8 @@ pub mod bytes {
21782180
* Copies `count` bytes from `src` to `dst`. The source and destination
21792181
* may overlap.
21802182
*/
2181-
pub fn copy_overlapping_memory(dst: &[mut u8], src: &[const u8], count: uint) {
2183+
pub fn copy_overlapping_memory(dst: &[mut u8], src: &[const u8],
2184+
count: uint) {
21822185
// Bound checks are done at vec::raw::copy_overlapping_memory.
21832186
unsafe { vec::raw::copy_overlapping_memory(dst, src, count) }
21842187
}

0 commit comments

Comments
 (0)