From 2942f9de972b463ecb17014a02466f261d4c26dc Mon Sep 17 00:00:00 2001 From: "A. Molzer" <5550310+197g@users.noreply.github.com> Date: Mon, 14 Jul 2025 18:07:08 +0200 Subject: [PATCH] Mark f16 bytecast as expected unused --- src/bytecast.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bytecast.rs b/src/bytecast.rs index 88d562c..9eeccfc 100644 --- a/src/bytecast.rs +++ b/src/bytecast.rs @@ -10,6 +10,9 @@ //! the unsafe code guidelines). //! //! TODO: Would like to use std-lib here. +// Until we implement predictors for f16, we don't need f16_as_ne_bytes. (Due to the macro we do +// not apply this directly to the functions). And rust-version is not new enough for `expect`. +#![allow(dead_code)] use std::{mem, slice}; use half::f16;