Skip to content

Commit 344e7af

Browse files
committed
libformat_parser: Fix Rust warnings.
ChangeLog: * libgrust/libformat_parser/generic_format_parser/src/lib.rs: Remove unused deprecated attribute and unused import. fixup
1 parent 2dc5ced commit 344e7af

File tree

2 files changed

+1
-3
lines changed
  • libgrust/libformat_parser

2 files changed

+1
-3
lines changed

libgrust/libformat_parser/generic_format_parser/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@
1414
// WARNING: We want to be able to build this crate with a stable compiler,
1515
// so no `#![feature]` attributes should be added!
1616

17-
#[deprecated(note = "Use a proper lexer function for this")]
1817
fn is_id_start(c: char) -> bool {
1918
c == '_' || unicode_xid::UnicodeXID::is_xid_start(c)
2019
}
2120

22-
#[deprecated(note = "Use a proper lexer function for this")]
2321
fn is_id_continue(c: char) -> bool {
2422
unicode_xid::UnicodeXID::is_xid_continue(c)
2523
}

libgrust/libformat_parser/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// what's the plan? Have a function return something that can be constructed into a vector?
44
// or an iterator?
55

6-
use std::{ffi::CStr, mem};
6+
use std::ffi::CStr;
77

88
trait IntoFFI<T> {
99
fn into_ffi(self) -> T;

0 commit comments

Comments
 (0)