mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-27 15:17:38 +00:00
Fix clippy warning
This commit is contained in:
parent
7172840fa5
commit
17ccdf6661
2 changed files with 5 additions and 3 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue