HOTFIX: allow cargo publish

This commit is contained in:
Aram Drevekenin 2021-05-04 16:58:23 +02:00
parent 97eca28954
commit fbe8042695
3 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View file

@ -2228,7 +2228,7 @@ dependencies = [
[[package]]
name = "zellij-tile"
version = "1.1.0"
version = "1.2.0"
dependencies = [
"serde",
"serde_json",

View file

@ -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]

View file

@ -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