From ce9d2c1d9d62d24858d189fa824a404b883e7809 Mon Sep 17 00:00:00 2001 From: Krisztian VASAS Date: Mon, 4 Dec 2023 18:40:24 +0100 Subject: [PATCH] Added missing config files to config-schema.json --- .github/config-schema.json | 10 ++++++++++ src/modules/character.rs | 2 -- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/config-schema.json b/.github/config-schema.json index 22b938e0cab8..d78a62593dbb 100644 --- a/.github/config-schema.json +++ b/.github/config-schema.json @@ -143,6 +143,8 @@ "error_symbol": "[❯](bold red)", "format": "$symbol ", "success_symbol": "[❯](bold green)", + "root_error_symbol": "[❯](bold purple)", + "root_success_symbol": "[❯](bold blue)", "vimcmd_replace_one_symbol": "[❮](bold purple)", "vimcmd_replace_symbol": "[❮](bold purple)", "vimcmd_symbol": "[❮](bold green)", @@ -2194,6 +2196,14 @@ "default": "[❯](bold red)", "type": "string" }, + "root_success_symbol": { + "default": "[❯](bold blue)", + "type": "string" + }, + "root_error_symbol": { + "default": "[❯](bold purple)", + "type": "string" + }, "vimcmd_symbol": { "default": "[❮](bold green)", "type": "string" diff --git a/src/modules/character.rs b/src/modules/character.rs index 6dd04a091afc..a7f806f7af35 100644 --- a/src/modules/character.rs +++ b/src/modules/character.rs @@ -112,13 +112,11 @@ fn is_root_user() -> bool { } #[cfg(all(target_os = "windows", test))] -#[allow(unused)] fn is_root_user() -> bool { false } #[cfg(not(target_os = "windows"))] -#[allow(unused)] fn is_root_user() -> bool { nix::unistd::geteuid() == nix::unistd::ROOT }