fix: Fix last E0716 in bootstrap.rs and remove unused PathBuf imports
Some checks failed
BotServer CI/CD / build (push) Failing after 5m47s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-04 10:16:27 -03:00
parent be6f0306cc
commit 5006159008

View file

@ -715,7 +715,8 @@ fn default_zitadel_config() -> crate::directory::ZitadelConfig {
async fn bootstrap_directory_admin(zitadel_config: &crate::directory::ZitadelConfig) {
use crate::directory::{bootstrap, ZitadelClient};
let pat_path = std::path::Path::new(&format!("{}/conf/directory/admin-pat.txt", get_stack_path()));
let stack = get_stack_path();
let pat_path = std::path::PathBuf::from(format!("{}/conf/directory/admin-pat.txt", stack));
let bootstrap_client = if pat_path.exists() {
match std::fs::read_to_string(pat_path) {
Ok(pat_token) => {