From ccf17448212c440dfcc355237ea4ee5784719159 Mon Sep 17 00:00:00 2001 From: Matt Bilker Date: Wed, 21 Sep 2022 04:36:50 +0000 Subject: [PATCH] format: fix compatibility with Rust 1.48 --- src/format.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/format.rs b/src/format.rs index 0e9fa8f..a9ebe24 100644 --- a/src/format.rs +++ b/src/format.rs @@ -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]);