Refactor code for improved clarity and maintainability

- Added `#[allow(clippy::too_many_arguments)]` annotations in `change_processor.rs` and `matching.rs` to suppress warnings for functions with multiple parameters.
- Updated `serve_session.rs` to include `clippy::type_complexity` in the `#[allow(dead_code)]` annotation for better code quality.
- Simplified array initialization in `file_names.rs` for consistency.
- Enhanced texture filtering logic in `matching_fixtures.rs` by replacing `map_or` with `is_some_and` for improved readability.

These changes contribute to a cleaner codebase and address static analysis warnings, ensuring better maintainability.
This commit is contained in:
Joe 2026-02-17 20:04:52 -06:00
parent dea60eb4cf
commit df22500102
7 changed files with 24 additions and 24 deletions

View file

@ -134,6 +134,7 @@ impl TestServeSession {
&self.project_path
}
#[allow(dead_code)]
pub fn port(&self) -> usize {
self.port
}
@ -516,16 +517,13 @@ pub fn fresh_rebuild_read(project_path: &Path) -> NormalizedInstance {
}
let url = format!("http://localhost:{}/api/rojo", port);
match reqwest::blocking::get(&url) {
Ok(resp) => {
if let Ok(body) = resp.bytes() {
if let Ok(server_info) = deserialize_msgpack::<ServerInfoResponse>(&body) {
info = Some(server_info);
break;
}
if let Ok(resp) = reqwest::blocking::get(&url) {
if let Ok(body) = resp.bytes() {
if let Ok(server_info) = deserialize_msgpack::<ServerInfoResponse>(&body) {
info = Some(server_info);
break;
}
}
Err(_) => {}
}
let retry_time_ms = BASE_DURATION_MS * (i as f32).powf(EXP_BACKOFF_FACTOR);
thread::sleep(Duration::from_millis(retry_time_ms as u64));