We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0aad658 commit 265452dCopy full SHA for 265452d
src/cargo/util/paths.rs
@@ -2,7 +2,6 @@ use std::env;
2
use std::ffi::{OsStr, OsString};
3
use std::fs::File;
4
use std::fs::OpenOptions;
5
-use std::io;
6
use std::io::prelude::*;
7
use std::path::{Path, PathBuf, Component};
8
@@ -68,10 +67,6 @@ pub fn without_prefix<'a>(a: &'a Path, b: &'a Path) -> Option<&'a Path> {
68
67
}
69
70
71
-pub fn file(p: &Path, contents: &[u8]) -> io::Result<()> {
72
- try!(File::create(p)).write_all(contents)
73
-}
74
-
75
pub fn read(path: &Path) -> CargoResult<String> {
76
(|| -> CargoResult<_> {
77
let mut ret = String::new();
0 commit comments