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."
|
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 = [
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue