format: fix compatibility with Rust 1.48

This commit is contained in:
Matt Bilker
2022-09-21 04:36:50 +00:00
parent 2f18efb8e5
commit ccf1744821

View File

@@ -1,5 +1,8 @@
// SPDX-License-Identifier: MIT
// (`char::decode_utf16` and `char::REPLACEMENT_CHAR` were exposed on the fundamental type
// in Rust 1.52)
use std::char;
use std::fmt::{self, Write};
pub struct CStrFormat<'a>(pub &'a [u8]);