mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Remove stray file
This commit is contained in:
1 parent
f0d7c2bea9
commit
995fac12fd
1 file changed
-13
-13
@@ -1,13 +0,0 @@
|
||||
use std::fs::File;
|
||||
use std::io::{Read, Result};
|
||||
use std::path::Path;
|
||||
|
||||
/// Read a file at `path` into a String
|
||||
pub fn read_file(path: &Path) -> Result<String> {
|
||||
info!("Loading file {:?}", path);
|
||||
let mut f = File::open(&path)?;
|
||||
let mut buffer = String::new();
|
||||
f.read_to_string(&mut buffer)?;
|
||||
|
||||
Ok(buffer)
|
||||
}
|
||||
Reference in new issue
Block a user