From ca7bc601e598c40d44bc253fff319742338f3435 Mon Sep 17 00:00:00 2001 From: Carolyn Zech Date: Thu, 1 Aug 2024 16:10:31 -0400 Subject: [PATCH] fix unused import error --- library/core/src/char/methods.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/char/methods.rs b/library/core/src/char/methods.rs index dfbe0136d8a28..21451b082d863 100644 --- a/library/core/src/char/methods.rs +++ b/library/core/src/char/methods.rs @@ -1,6 +1,5 @@ //! impl char {} -use safety::ensures; use crate::slice; use crate::str::from_utf8_unchecked_mut; use crate::unicode::printable::is_printable; @@ -1845,6 +1844,7 @@ pub fn encode_utf16_raw(mut code: u32, dst: &mut [u16]) -> &mut [u16] { #[unstable(feature="kani", issue="none")] mod verify { use super::*; + use safety::ensures; #[ensures(|result| c.is_ascii() == (result.is_some() && (result.unwrap() as u8 as char == *c)))] fn as_ascii_clone(c: &char) -> Option {