Skip to content

Commit

Permalink
libformat_parser: Fix Rust warnings.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
CohenArthur committed Feb 26, 2024
1 parent a829fc4 commit 3cd6cd7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions libgrust/libformat_parser/generic_format_parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion libgrust/libformat_parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3cd6cd7

Please sign in to comment.