diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-02-15 13:11:26 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-08-01 13:11:29 +0200 |
commit | f7dafa7d4bba993a32f8883967babddf8510772c (patch) | |
tree | 3f4267d8d255921574b693fe6e0ce325b38d7880 | |
parent | 0f9668507c9843a773af794ed8d0b0de3fa8b5cf (diff) | |
download | gcc-f7dafa7d4bba993a32f8883967babddf8510772c.zip gcc-f7dafa7d4bba993a32f8883967babddf8510772c.tar.gz gcc-f7dafa7d4bba993a32f8883967babddf8510772c.tar.bz2 |
gccrs: libformat_parser: Fix Rust warnings.
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.
-rw-r--r-- | libgrust/libformat_parser/generic_format_parser/src/lib.rs | 2 | ||||
-rw-r--r-- | libgrust/libformat_parser/src/lib.rs | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/libgrust/libformat_parser/generic_format_parser/src/lib.rs b/libgrust/libformat_parser/generic_format_parser/src/lib.rs index 87a20dc..6a36617 100644 --- a/libgrust/libformat_parser/generic_format_parser/src/lib.rs +++ b/libgrust/libformat_parser/generic_format_parser/src/lib.rs @@ -14,12 +14,10 @@ // 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) } diff --git a/libgrust/libformat_parser/src/lib.rs b/libgrust/libformat_parser/src/lib.rs index eb3e106..c164578 100644 --- a/libgrust/libformat_parser/src/lib.rs +++ b/libgrust/libformat_parser/src/lib.rs @@ -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; |