From a6528842c372622bf54968dc75147d90830bf31e Mon Sep 17 00:00:00 2001 From: Pierre Fenoll Date: Sat, 27 Jul 2024 15:52:08 +0200 Subject: [PATCH] Fix compilation issue after #118 Signed-off-by: Pierre Fenoll --- src/framebuffer/core.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/framebuffer/core.rs b/src/framebuffer/core.rs index ac9bfd2..26da4fe 100644 --- a/src/framebuffer/core.rs +++ b/src/framebuffer/core.rs @@ -52,8 +52,8 @@ impl Framebuffer { Model::Gen1 => Framebuffer::device(device.get_framebuffer_path()), Model::Gen2 => { // Auto-select old method still if env LIBREMARKABLE_FB_DISFAVOR_INTERNAL_RM2FB is set affirmatively - match std::env::var("LIBREMARKABLE_FB_DISFAVOR_INTERNAL_RM2FB").ok() { - Some("1") => Framebuffer::device(device.get_framebuffer_path()), + match std::env::var("LIBREMARKABLE_FB_DISFAVOR_INTERNAL_RM2FB").as_deref() { + Ok("1") => Framebuffer::device(device.get_framebuffer_path()), _ => Framebuffer::rm2fb(device.get_framebuffer_path()), } }