mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Use fs_err
with AutoStream
(#648)
This commit is contained in:
parent
db7e2dedbb
commit
402b728bf7
1 changed files with 3 additions and 1 deletions
|
@ -192,7 +192,9 @@ pub(crate) async fn pip_compile(
|
|||
|
||||
// Write the resolved dependencies to the output channel.
|
||||
let mut writer: Box<dyn std::io::Write> = if let Some(output_file) = output_file {
|
||||
Box::new(AutoStream::auto(std::fs::File::create(output_file)?))
|
||||
Box::new(AutoStream::<std::fs::File>::auto(
|
||||
fs::File::create(output_file)?.into(),
|
||||
))
|
||||
} else {
|
||||
Box::new(AutoStream::auto(stdout()))
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue