style(host): rustfmt the security-fix wrapping (cargo fmt --all --check)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-29 05:19:22 +00:00
parent c1ce231dbf
commit d8f13dc15d
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -36,7 +36,8 @@ pub fn load_or_generate() -> Result<String> {
let token = hex::encode(buf);
let dir = crate::gamestream::config_dir();
// Owner-private dir (0700 Unix / DACL-locked Windows) so the token can't leak via the config path.
crate::gamestream::create_private_dir(&dir).with_context(|| format!("create {}", dir.display()))?;
crate::gamestream::create_private_dir(&dir)
.with_context(|| format!("create {}", dir.display()))?;
write_token(&path, &token)?;
tracing::info!(path = %path.display(), "generated and persisted management API token (owner-only)");
Ok(token)