diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-10 02:48:46 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-10 02:48:46 +0900 |
| commit | 54760d5c73ca20de2e155df274d576cec9ea0ed0 (patch) | |
| tree | c568b65ce51513a6e38491bec84c0eb05e44bd15 /crates/shirabe-php-shim/src/runtime.rs | |
| parent | bbf33b836026cbe9fb9e7c76291dcb133b7144e2 (diff) | |
| download | php-shirabe-54760d5c73ca20de2e155df274d576cec9ea0ed0.tar.gz php-shirabe-54760d5c73ca20de2e155df274d576cec9ea0ed0.tar.zst php-shirabe-54760d5c73ca20de2e155df274d576cec9ea0ed0.zip | |
style(php-shim): drop the underscore from used parameter names
These parameters kept the leading underscore they were given while their
function bodies were still todo!(), and the underscore now reads as "this
argument is ignored" for arguments the bodies do use.
Removing the prefix stops it from suppressing four clippy lints, fixed
alongside: one redundant field name, and three `&mut Vec` parameters that
only need a slice.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-php-shim/src/runtime.rs')
| -rw-r--r-- | crates/shirabe-php-shim/src/runtime.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/shirabe-php-shim/src/runtime.rs b/crates/shirabe-php-shim/src/runtime.rs index 6b165567..86cbfd74 100644 --- a/crates/shirabe-php-shim/src/runtime.rs +++ b/crates/shirabe-php-shim/src/runtime.rs @@ -334,8 +334,8 @@ pub fn trigger_deprecation(_package: &str, _version: &str, _message: &str, _arg: todo!() } -pub fn usleep(_microseconds: u64) { - std::thread::sleep(std::time::Duration::from_micros(_microseconds)); +pub fn usleep(microseconds: u64) { + std::thread::sleep(std::time::Duration::from_micros(microseconds)); } /// Equivalent to PHP's __DIR__ magic constant |
