Skip to content

Commit 3370a3c

Browse files
mohe2015emilio
authored andcommitted
Replace peeking_take_while by itertools
1 parent 3239e69 commit 3370a3c

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

Cargo.lock

Lines changed: 10 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindgen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ annotate-snippets = { version = "0.9.1", features = ["color"], optional = true }
2929
bitflags = "2.2.1"
3030
cexpr = "0.6"
3131
clang-sys = { version = "1", features = ["clang_6_0"] }
32+
itertools = { version = "0.12.0", default-features = false }
3233
lazy_static = "1"
3334
lazycell = "1"
3435
log = { version = "0.4", optional = true }
35-
peeking_take_while = "0.1.2"
3636
prettyplease = { version = "0.2.7", optional = true, features = ["verbatim"] }
3737
proc-macro2 = { version = "1", default-features = false }
3838
quote = { version = "1", default-features = false }

bindgen/ir/comp.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
//! Compound types (unions and structs) in our intermediate representation.
22
3+
use itertools::Itertools;
4+
35
use super::analysis::Sizedness;
46
use super::annotations::Annotations;
57
use super::context::{BindgenContext, FunctionId, ItemId, TypeId, VarId};
@@ -15,7 +17,6 @@ use crate::ir::derive::CanDeriveCopy;
1517
use crate::parse::ParseError;
1618
use crate::HashMap;
1719
use crate::NonCopyUnionStyle;
18-
use peeking_take_while::PeekableExt;
1920
use std::cmp;
2021
use std::io;
2122
use std::mem;

0 commit comments

Comments
 (0)