mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
Fix for latest Rust
This commit is contained in:
parent
801e30999f
commit
0c60bda074
2 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue