mirror of
https://github.com/urbit/ares.git
synced 2024-11-28 11:18:06 +03:00
new_from_files
This commit is contained in:
parent
db30cf9208
commit
d957982e5a
@ -68,6 +68,13 @@ pub struct Newt {
|
||||
}
|
||||
|
||||
impl Newt {
|
||||
pub fn new_from_files(input: std::fs::File, output: std::fs::File) -> Newt {
|
||||
Newt {
|
||||
input,
|
||||
output,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new() -> Newt {
|
||||
Newt {
|
||||
input: unsafe { std::fs::File::from_raw_fd(0) },
|
||||
|
Loading…
Reference in New Issue
Block a user