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."
version = "0.4.0"
edition = "2021"
rust-version = "1.63.0"
rust-version = "1.83.0"
keywords = ["pty", "script", "tty", "tee"]
readme = "README.md"
exclude = [

View file

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