Fix test on Rust Stable.

https://github.com/rust-lang/rust/issues/32801
This commit is contained in:
Valentin Lorentz 2016-04-07 20:54:22 +02:00
parent e673a102b6
commit 8ff308740c
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@ BUILDDIR := $(BASEDIR)/target/${PROFILE}/
PKG_BUILDDIR := $(BUILDDIR)/deps/
BUSYBOX_ROOT := $(BASEDIR)/tmp/
BUSYBOX_VER := 1.24.1
BUSYBOX_VER := 1.22.0
BUSYBOX_SRC:=$(BUSYBOX_ROOT)/busybox-$(BUSYBOX_VER)/
# Possible programs

View file

@ -246,7 +246,7 @@ impl AtPath {
pub fn append(&self, name: &str, contents: &str) {
log_info("open(append)", self.plus_as_string(name));
let mut f = OpenOptions::new().append(true).open(self.plus(name)).unwrap();
let mut f = OpenOptions::new().write(true).append(true).open(self.plus(name)).unwrap();
let _ = f.write(contents.as_bytes());
}