Fix type mismatch error in terminal.rs: ExitStatus to i32 conversion #13

Open
opened 2026-04-15 02:00:12 +02:00 by kade · 0 comments
Owner

Error

error[E0308]: mismatched types
--> crates/terminal/src/terminal.rs:1002:50
|
1002 | self.register_task_finished(Some(raw_status), cx);
| ---- ^^^^^^^^^^ expected i32, found ExitStatus

Location

  • File: crates/terminal/src/terminal.rs
  • Line: 1002
  • Function: register_task_finished

Issue

The function register_task_finished expects an i32 but is receiving an ExitStatus type. Need to convert ExitStatus to i32 exit code.

Context

This error appeared after vendoring alacritty, likely due to type changes in the alacritty_terminal dependency.

## Error error[E0308]: mismatched types --> crates/terminal/src/terminal.rs:1002:50 | 1002 | self.register_task_finished(Some(raw_status), cx); | ---- ^^^^^^^^^^ expected `i32`, found `ExitStatus` ## Location - File: crates/terminal/src/terminal.rs - Line: 1002 - Function: register_task_finished ## Issue The function `register_task_finished` expects an `i32` but is receiving an `ExitStatus` type. Need to convert `ExitStatus` to `i32` exit code. ## Context This error appeared after vendoring alacritty, likely due to type changes in the alacritty_terminal dependency.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kade/blitz#13
No description provided.