Skip to content

Commit b986924

Browse files
astral-automations-bot[bot]ww-oaiwoodruffw
authored
Borrow the uv-build command argument (#22747)
Co-authored-by: William Woodruff <[email protected]> Co-authored-by: William Woodruff <[email protected]> Signed-off-by: William Woodruff <[email protected]>
1 parent 63f83b1 commit b986924

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

‎crates/uv-build/src/main.rs‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,10 @@ fn main() -> Result<()> {
3030
.init();
3131

3232
// Handrolled to avoid the large clap dependency
33-
let mut args = env::args_os();
33+
let mut args = env::args();
3434
// Skip the name of the binary
3535
args.next();
36-
let command = args
37-
.next()
38-
.context("Missing command")?
39-
.to_str()
40-
.context("Invalid non-UTF8 command")?
41-
.to_string();
36+
let command = args.next().context("Missing command")?;
4237

4338
// Ad-hoc preview features parsing due to a lack of clap CLI in uv-build.
4439
let preview = if parse_boolish_environment_variable(EnvVars::UV_PREVIEW)?.unwrap_or(false) {

0 commit comments

Comments
 (0)