diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-02-22 11:33:19 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-02-22 11:33:19 +0100 |
commit | 335bfe91d7efdfd5a89eaf7728511f96dab3fef3 (patch) | |
tree | 89d365b5731999e47aba0f1e40e79c88e9159f1d /yt/src/select/mod.rs | |
parent | fix(yt/main): Call `watch` with the required `Arc<App>` (diff) | |
download | yt-335bfe91d7efdfd5a89eaf7728511f96dab3fef3.zip |
fix(yt/): Box large futures
Otherwise, they could result in a stack overflow
Diffstat (limited to '')
-rw-r--r-- | yt/src/select/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt/src/select/mod.rs b/yt/src/select/mod.rs index 44c8d4f..4c34d16 100644 --- a/yt/src/select/mod.rs +++ b/yt/src/select/mod.rs @@ -133,14 +133,14 @@ pub async fn select(app: &App, done: bool, use_last_selection: bool) -> Result<( unreachable!("This is checked in the `filter_line` function") }; - handle_select_cmd( + Box::pin(handle_select_cmd( app, cmd.unreachable( "This value should always be some \ here, as it would otherwise thrown an error above.", ), Some(line_number), - ) + )) .await?; } } |