Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Oct 28, 2024
1 parent dc54453 commit 868c15a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions crates/uv-trampoline/src/bounce.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ enum TrampolineKind {
impl TrampolineKind {
const fn magic_number(&self) -> &'static [u8; 4] {
match self {
Self::Script => &[b'U', b'V', b'S', b'C'],
Self::Python => &[b'U', b'V', b'P', b'Y'],
Self::Script => b"UVSC",
Self::Python => b"UVPY",
}
}

Expand Down
7 changes: 2 additions & 5 deletions crates/uv-trampoline/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,16 @@ mod diagnostics;

#[cfg(test)]
mod test {
use std::io::{Cursor, Write};
use std::io::Write;
use std::path::Path;
use std::process::Command;
use std::{env, io};

use anyhow::Result;
use assert_cmd::prelude::OutputAssertExt;
use assert_fs::prelude::PathChild;
use fs_err::File;
use thiserror::Error;

use which::which;
use zip::write::FileOptions;
use zip::ZipWriter;

use uv_trampoline_builder::windows_script_launcher;

Expand Down

0 comments on commit 868c15a

Please sign in to comment.