From 62d1db1d6c0aaf93323d81b915d8810248c287ec Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Sun, 13 Jan 2013 16:34:54 -0800 Subject: [PATCH] Long lines --- src/libcore/ptr.rs | 3 ++- src/libcore/vec.rs | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index 30f9f9ac7fd..17c3c11e572 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -134,7 +134,8 @@ pub unsafe fn copy_memory(dst: *mut T, src: *const T, count: uint) { * and destination may overlap. */ #[inline(always)] -pub unsafe fn copy_overlapping_memory(dst: *mut T, src: *const T, count: uint) { +pub unsafe fn copy_overlapping_memory(dst: *mut T, src: *const T, + count: uint) { let n = count * sys::size_of::(); libc_::memmove(dst as *mut c_void, src as *c_void, n as size_t); } diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs index e47fe6cd00f..9527c85481c 100644 --- a/src/libcore/vec.rs +++ b/src/libcore/vec.rs @@ -2085,7 +2085,8 @@ pub mod raw { * Copies `count` bytes from `src` to `dst`. The source and destination * may overlap. */ - pub unsafe fn copy_memory(dst: &[mut T], src: &[const T], count: uint) { + pub unsafe fn copy_memory(dst: &[mut T], src: &[const T], + count: uint) { assert dst.len() >= count; assert src.len() >= count; @@ -2102,7 +2103,8 @@ pub mod raw { * Copies `count` bytes from `src` to `dst`. The source and destination * may overlap. */ - pub unsafe fn copy_overlapping_memory(dst: &[mut T], src: &[const T], count: uint) { + pub unsafe fn copy_overlapping_memory(dst: &[mut T], src: &[const T], + count: uint) { assert dst.len() >= count; assert src.len() >= count; @@ -2178,7 +2180,8 @@ pub mod bytes { * Copies `count` bytes from `src` to `dst`. The source and destination * may overlap. */ - pub fn copy_overlapping_memory(dst: &[mut u8], src: &[const u8], count: uint) { + pub fn copy_overlapping_memory(dst: &[mut u8], src: &[const u8], + count: uint) { // Bound checks are done at vec::raw::copy_overlapping_memory. unsafe { vec::raw::copy_overlapping_memory(dst, src, count) } }