From 637441239434fabedfe83f5abc1af4232c802f7a Mon Sep 17 00:00:00 2001 From: Genny Date: Thu, 23 Sep 2021 20:33:50 -0500 Subject: Improve API, monocommit, sorry --- src/block/extension/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/block/extension/mod.rs') diff --git a/src/block/extension/mod.rs b/src/block/extension/mod.rs index d0e57c6..f328357 100644 --- a/src/block/extension/mod.rs +++ b/src/block/extension/mod.rs @@ -2,6 +2,7 @@ mod application; mod graphiccontrol; pub use graphiccontrol::{DisposalMethod, GraphicControl}; +use owo_colors::colors::xterm::GrandisCaramel; pub use self::application::Application; @@ -41,3 +42,9 @@ impl From<&Extension> for Box<[u8]> { vec.into_boxed_slice() } } + +impl From for Extension { + fn from(gce: GraphicControl) -> Self { + Extension::GraphicControl(gce) + } +} -- cgit 1.4.1-3-g733a5