We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2d1ac1 commit 2961997Copy full SHA for 2961997
src/libcore/os.rs
@@ -352,7 +352,10 @@ pub fn fsync_fd(fd: c_int, _l: io::fsync::Level) -> c_int {
352
}
353
354
355
-pub struct Pipe { in: c_int, out: c_int }
+pub struct Pipe {
356
+ in: c_int,
357
+ out: c_int
358
+}
359
360
#[cfg(unix)]
361
pub fn pipe() -> Pipe {
src/libcore/ptr.rs
@@ -336,7 +336,10 @@ pub mod ptr_tests {
336
#[test]
337
fn test() {
338
unsafe {
339
- struct Pair {mut fst: int, mut snd: int};
+ struct Pair {
340
+ fst: int,
341
+ snd: int
342
+ };
343
let mut p = Pair {fst: 10, snd: 20};
344
let pptr: *mut Pair = &mut p;
345
let iptr: *mut int = cast::transmute(pptr);
0 commit comments