mirror of
https://github.com/openharmony/third_party_rust_bytes.git
synced 2026-07-19 17:05:29 -04:00
d5a18356a0
As consequence Buf::collect is removed as well, which is replaced with `Buf::into_bytes`. The advantage of `Buf::into_bytes` is that it can be optimized in cases where converting a `T: Buf` into a `Bytes` instance is efficient.
23 lines
842 B
Plaintext
23 lines
842 B
Plaintext
diff --git a/src/docker.rs b/src/docker.rs
|
|
index 6ea745d..15fef81 100644
|
|
--- a/src/docker.rs
|
|
+++ b/src/docker.rs
|
|
@@ -62,7 +62,7 @@ pub fn register(target: &Target, verbose: bool) -> Result<()> {
|
|
docker_command("run")
|
|
.arg("--privileged")
|
|
.arg("--rm")
|
|
- .arg("-it")
|
|
+ .arg("-i")
|
|
.arg("ubuntu:16.04")
|
|
.args(&["sh", "-c", cmd])
|
|
.run(verbose)
|
|
@@ -160,7 +160,7 @@ pub fn run(target: &Target,
|
|
.args(&["-v", &format!("{}:/rust:Z,ro", sysroot.display())])
|
|
.args(&["-v", &format!("{}:/target:Z", target_dir.display())])
|
|
.args(&["-w", "/project"])
|
|
- .args(&["-it", &image(toml, target)?])
|
|
+ .args(&["-i", &image(toml, target)?])
|
|
.args(&["sh", "-c", &format!("PATH=$PATH:/rust/bin {:?}", cmd)])
|
|
.run_and_get_status(verbose)
|
|
}
|