Skip to content

Commit c0faf2d

Browse files
committed
Drop winsound imports left unused
`TryFromBorrowedObject`, `exceptions`, and `ToWideString` have no reference in the module, which fails the Windows clippy line under `-Dwarnings`. Assisted-by: Claude
1 parent da37fb8 commit c0faf2d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎crates/vm/src/stdlib/winsound.rs‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ pub(crate) use winsound::module_def;
66
#[pymodule]
77
mod winsound {
88
use crate::builtins::{PyBaseExceptionRef, PyBytes, PyStr};
9-
use crate::convert::{IntoPyException, ToPyException, TryFromBorrowedObject};
10-
use crate::exceptions;
11-
use crate::host_env::windows::ToWideString;
9+
use crate::convert::{IntoPyException, ToPyException};
1210
use crate::protocol::{BufferFlags, PyBuffer};
1311
use crate::{AsObject, PyObjectRef, PyResult, VirtualMachine};
1412
use rustpython_host_env::winsound::{PlaySoundError, PlaySoundSource, play_sound};

0 commit comments

Comments
 (0)