diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-08-15 18:46:55 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-08-17 10:13:45 -0700 |
| commit | 3ab4b014cfaf6dff5b450f4a1772e9993550fe38 (patch) | |
| tree | cff9c62a771f5e86819095f9cfa348fd935ba207 /src/libcore/io.rs | |
| parent | 6d7b143036e1d61c8f58864db3445d2a0ae4ad11 (diff) | |
Remove the class keyword
Diffstat (limited to 'src/libcore/io.rs')
| -rw-r--r-- | src/libcore/io.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/io.rs b/src/libcore/io.rs index d85ffb4981d..8ef9556a958 100644 --- a/src/libcore/io.rs +++ b/src/libcore/io.rs @@ -237,7 +237,7 @@ impl<T: Reader, C> {base: T, cleanup: C}: Reader { fn tell() -> uint { self.base.tell() } } -class FILERes { +struct FILERes { let f: *libc::FILE; new(f: *libc::FILE) { self.f = f; } drop { libc::fclose(self.f); } @@ -415,7 +415,7 @@ impl fd_t: Writer { } } -class FdRes { +struct FdRes { let fd: fd_t; new(fd: fd_t) { self.fd = fd; } drop { libc::close(self.fd); } @@ -764,7 +764,7 @@ mod fsync { // Artifacts that need to fsync on destruction - class Res<t> { + struct Res<t> { let arg: Arg<t>; new(-arg: Arg<t>) { self.arg <- arg; } drop { |
