Fix clippy warning

This commit is contained in:
Armin Ronacher 2025-06-17 00:07:42 +02:00
parent 7172840fa5
commit 17ccdf6661
2 changed files with 5 additions and 3 deletions

View file

@ -5,7 +5,7 @@ authors = ["Armin Ronacher <armin.ronacher@active-4.com>"]
description = "Utility to capture a tty and forward it." description = "Utility to capture a tty and forward it."
version = "0.4.0" version = "0.4.0"
edition = "2021" edition = "2021"
rust-version = "1.63.0" rust-version = "1.83.0"
keywords = ["pty", "script", "tty", "tee"] keywords = ["pty", "script", "tty", "tee"]
readme = "README.md" readme = "README.md"
exclude = [ exclude = [

View file

@ -1060,8 +1060,10 @@ fn handle_session_stream_direct(control_path: &Path, path: &str, req: &mut HttpR
} }
} else { } else {
// Send default header if file can't be read // Send default header if file can't be read
let mut default_header = crate::protocol::AsciinemaHeader::default(); let mut default_header = crate::protocol::AsciinemaHeader {
default_header.timestamp = Some(start_time as u64); timestamp: Some(start_time as u64),
..Default::default()
};
default_header default_header
.env .env
.get_or_insert_default() .get_or_insert_default()