[control] Clippy clean for the T4 code; CLAUDE.md: the deploy folders and the Linux test command in Docker; the Docker smoke turns off Git Bash's path rewriting and removes its volume
This commit is contained in:
@@ -39,8 +39,9 @@ use crate::util::{
|
||||
write_json,
|
||||
};
|
||||
|
||||
/// What a user asked for.
|
||||
/// What a user asked for. Built once per request; boxing the host body buys nothing.
|
||||
#[derive(Debug, Clone)]
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
pub enum Change {
|
||||
Put { spec: HostSpec, create: bool },
|
||||
ShareLinks { hostname: String, on: bool },
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
//! (a preview token is hostile: it must not be able to publish this machine's admin ports),
|
||||
//! and the sweeper that closes expired previews.
|
||||
|
||||
// A refusal is built once per failed request; boxing it buys nothing (as in `engine`).
|
||||
#![allow(clippy::result_large_err)]
|
||||
|
||||
use std::net::{IpAddr, Ipv4Addr, Ipv6Addr};
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
@@ -95,7 +98,10 @@ fn parse_entry(e: &str) -> Option<Allowed> {
|
||||
ports,
|
||||
});
|
||||
}
|
||||
plain(&name).then(|| Allowed {
|
||||
if !plain(&name) {
|
||||
return None;
|
||||
}
|
||||
Some(Allowed {
|
||||
target: Target::Name(name),
|
||||
ports,
|
||||
})
|
||||
|
||||
@@ -22,7 +22,7 @@ use serde_json::{Value, json};
|
||||
const DOMAIN: &str = "pv.example.test";
|
||||
|
||||
struct Ctl {
|
||||
dir: TempDir,
|
||||
_dir: TempDir,
|
||||
api: SocketAddr,
|
||||
admin: String,
|
||||
preview: String,
|
||||
@@ -112,7 +112,7 @@ sweep_secs = 1
|
||||
"control did not listen"
|
||||
);
|
||||
Ctl {
|
||||
dir,
|
||||
_dir: dir,
|
||||
api,
|
||||
admin,
|
||||
preview,
|
||||
|
||||
Reference in New Issue
Block a user