Skip to content

Commit

Permalink
fix unused import error
Browse files Browse the repository at this point in the history
  • Loading branch information
carolynzech committed Aug 1, 2024
1 parent 562d672 commit ca7bc60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/char/methods.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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<ascii::Char> {
Expand Down

0 comments on commit ca7bc60

Please sign in to comment.