From fbe8042695e0e6eb09a66a2685fd8038df6e3236 Mon Sep 17 00:00:00 2001 From: Aram Drevekenin Date: Tue, 4 May 2021 16:58:23 +0200 Subject: [PATCH] HOTFIX: allow cargo publish --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/common/utils/shared.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ac4a40a5..0f6f09b5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2228,7 +2228,7 @@ dependencies = [ [[package]] name = "zellij-tile" -version = "1.1.0" +version = "1.2.0" dependencies = [ "serde", "serde_json", diff --git a/Cargo.toml b/Cargo.toml index b9375f59..c3499fe5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,7 @@ wasmer = "1.0.0" wasmer-wasi = "1.0.0" interprocess = "1.0.1" colors-transform = "0.2.5" -zellij-tile = { path = "zellij-tile/", version = "1.1.0" } +zellij-tile = { path = "zellij-tile/", version = "1.2.0" } zellij-tile-extra = { path = "zellij-tile-extra/", version="1.0.0" } [dependencies.async-std] diff --git a/src/common/utils/shared.rs b/src/common/utils/shared.rs index 7b4cbcb5..ace5674b 100644 --- a/src/common/utils/shared.rs +++ b/src/common/utils/shared.rs @@ -43,7 +43,7 @@ pub mod colors { pub const BLACK: u8 = 16; } -pub fn hex_to_rgb(hex: &str) -> (u8, u8, u8) { +pub fn _hex_to_rgb(hex: &str) -> (u8, u8, u8) { let rgb = Rgb::from_hex_str(hex) .expect("The passed argument must be a valid hex color") .as_tuple(); @@ -69,7 +69,7 @@ pub fn default_palette() -> Palette { } // Dark magic -pub fn detect_theme(bg: PaletteColor) -> Theme { +pub fn _detect_theme(bg: PaletteColor) -> Theme { match bg { PaletteColor::Rgb((r, g, b)) => { // HSP, P stands for perceived brightness