]> gcc.gnu.org Git - gcc.git/commitdiff
libformat_parser: Fix Rust warnings.
authorArthur Cohen <arthur.cohen@embecosm.com>
Thu, 15 Feb 2024 12:11:26 +0000 (13:11 +0100)
committerCohenArthur <arthur.cohen@embecosm.com>
Mon, 26 Feb 2024 17:32:38 +0000 (17:32 +0000)
libgrust/ChangeLog:

* libformat_parser/generic_format_parser/src/lib.rs: Remove
unused deprecated attribute and unused import.
* libformat_parser/src/lib.rs: Remove unused import.

libgrust/libformat_parser/generic_format_parser/src/lib.rs
libgrust/libformat_parser/src/lib.rs

index 87a20dc18c56eaf7e1df662bcaff4bea1150e689..6a366177f252349bcf0beeed378b55a36a52e2ec 100644 (file)
 // WARNING: We want to be able to build this crate with a stable compiler,
 //          so no `#![feature]` attributes should be added!
 
-#[deprecated(note = "Use a proper lexer function for this")]
 fn is_id_start(c: char) -> bool {
     c == '_' || unicode_xid::UnicodeXID::is_xid_start(c)
 }
 
-#[deprecated(note = "Use a proper lexer function for this")]
 fn is_id_continue(c: char) -> bool {
     unicode_xid::UnicodeXID::is_xid_continue(c)
 }
index eb3e1060e5d87e2fb8c8dd1098bf5e4c92c43fa9..c164578a10395ab29caf273f4eba6aad084a75a6 100644 (file)
@@ -3,7 +3,7 @@
 // what's the plan? Have a function return something that can be constructed into a vector?
 // or an iterator?
 
-use std::{ffi::CStr, mem};
+use std::ffi::CStr;
 
 trait IntoFFI<T> {
     fn into_ffi(self) -> T;
This page took 0.057168 seconds and 5 git commands to generate.