Skip to content

Commit

Permalink
Replace peeking_take_while by itertools
Browse files Browse the repository at this point in the history
  • Loading branch information
mohe2015 authored and emilio committed Jan 22, 2024
1 parent 3239e69 commit 3370a3c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
17 changes: 10 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bindgen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ annotate-snippets = { version = "0.9.1", features = ["color"], optional = true }
bitflags = "2.2.1"
cexpr = "0.6"
clang-sys = { version = "1", features = ["clang_6_0"] }
itertools = { version = "0.12.0", default-features = false }
lazy_static = "1"
lazycell = "1"
log = { version = "0.4", optional = true }
peeking_take_while = "0.1.2"
prettyplease = { version = "0.2.7", optional = true, features = ["verbatim"] }
proc-macro2 = { version = "1", default-features = false }
quote = { version = "1", default-features = false }
Expand Down
3 changes: 2 additions & 1 deletion bindgen/ir/comp.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//! Compound types (unions and structs) in our intermediate representation.

use itertools::Itertools;

use super::analysis::Sizedness;
use super::annotations::Annotations;
use super::context::{BindgenContext, FunctionId, ItemId, TypeId, VarId};
Expand All @@ -15,7 +17,6 @@ use crate::ir::derive::CanDeriveCopy;
use crate::parse::ParseError;
use crate::HashMap;
use crate::NonCopyUnionStyle;
use peeking_take_while::PeekableExt;
use std::cmp;
use std::io;
use std::mem;
Expand Down

0 comments on commit 3370a3c

Please sign in to comment.