From 293121e5f5002fa27e1bc590b9dec7840177cf10 Mon Sep 17 00:00:00 2001 From: bendn Date: Sat, 18 May 2024 19:06:00 +0700 Subject: [PATCH] fix bad transmute (???) and extern crate test --- Cargo.toml | 2 +- src/term/b64.rs | 2 -- src/term/bloc.rs | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index aef558a..8b3b403 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fimg" -version = "0.4.42" +version = "0.4.43" authors = ["bend-n "] license = "MIT" edition = "2021" diff --git a/src/term/b64.rs b/src/term/b64.rs index 1038d45..07d4ac6 100644 --- a/src/term/b64.rs +++ b/src/term/b64.rs @@ -19,8 +19,6 @@ fn b64() { t("Hello World", "SGVsbG8gV29ybGQ="); } -extern crate test; - pub fn encode(i: &[u8]) -> String { let mut x = Vec::with_capacity(size(i)); unsafe { portable(i, x.as_mut_ptr()) }; diff --git a/src/term/bloc.rs b/src/term/bloc.rs index 5f6347b..7bafd78 100644 --- a/src/term/bloc.rs +++ b/src/term/bloc.rs @@ -57,7 +57,7 @@ where }; (o $n:literal) => { transmute::, 1>, Image, N>>( - transmute::, N>, Image<&[u8], 1>>(self.as_ref().to_owned()) + transmute::, N>, Image, 1>>(self.as_ref().to_owned()) .scale::(w, h), ) };