mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Fix for latest Rust
This commit is contained in:
+3
-3
@@ -11,7 +11,7 @@
|
||||
|
||||
#[feature(macro_rules)];
|
||||
|
||||
extern mod extra;
|
||||
extern mod serialize;
|
||||
extern mod getopts;
|
||||
|
||||
use std::char;
|
||||
@@ -25,8 +25,8 @@ use getopts::{
|
||||
optopt,
|
||||
usage
|
||||
};
|
||||
use extra::base64;
|
||||
use extra::base64::{FromBase64, ToBase64};
|
||||
use serialize::base64;
|
||||
use serialize::base64::{FromBase64, ToBase64};
|
||||
|
||||
#[path = "../util.rs"]
|
||||
mod util;
|
||||
|
||||
+2
-2
@@ -107,7 +107,7 @@ struct NamedWriter {
|
||||
|
||||
impl Writer for NamedWriter {
|
||||
fn write(&mut self, buf: &[u8]) -> IoResult<()> {
|
||||
with_path(self.path, || {
|
||||
with_path(self.path.clone(), || {
|
||||
let val = self.inner.write(buf);
|
||||
if val.is_err() {
|
||||
self.inner = ~NullWriter as ~Writer;
|
||||
@@ -117,7 +117,7 @@ impl Writer for NamedWriter {
|
||||
}
|
||||
|
||||
fn flush(&mut self) -> IoResult<()> {
|
||||
with_path(self.path, || {
|
||||
with_path(self.path.clone(), || {
|
||||
let val = self.inner.flush();
|
||||
if val.is_err() {
|
||||
self.inner = ~NullWriter as ~Writer;
|
||||
|
||||
Reference in New Issue
Block a user