Regenerate with gir to update system-deps dependency and get rid of clippy warning in the ABI tests

This commit is contained in:
Sebastian Dröge 2021-02-09 17:51:59 +02:00
parent ad468e676e
commit 3d076c05e1
41 changed files with 63 additions and 63 deletions

View file

@ -1,5 +1,5 @@
[build-dependencies] [build-dependencies]
system-deps = "2.0" system-deps = "3"
[dependencies] [dependencies]
libc = "0.2" libc = "0.2"

View file

@ -114,7 +114,7 @@ fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new(); let mut c_constants: Vec<(String, String)> = Vec::new();
for l in get_c_output("constant").unwrap().lines() { for l in get_c_output("constant").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let value = words let value = words
.next() .next()
@ -154,7 +154,7 @@ fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new(); let mut c_layouts = Vec::new();
for l in get_c_output("layout").unwrap().lines() { for l in get_c_output("layout").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let size = words let size = words
.next() .next()

View file

@ -1,5 +1,5 @@
[build-dependencies] [build-dependencies]
system-deps = "2.0" system-deps = "3"
[dependencies] [dependencies]
libc = "0.2" libc = "0.2"

View file

@ -114,7 +114,7 @@ fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new(); let mut c_constants: Vec<(String, String)> = Vec::new();
for l in get_c_output("constant").unwrap().lines() { for l in get_c_output("constant").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let value = words let value = words
.next() .next()
@ -154,7 +154,7 @@ fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new(); let mut c_layouts = Vec::new();
for l in get_c_output("layout").unwrap().lines() { for l in get_c_output("layout").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let size = words let size = words
.next() .next()

View file

@ -1,5 +1,5 @@
[build-dependencies] [build-dependencies]
system-deps = "2.0" system-deps = "3"
[dependencies] [dependencies]
libc = "0.2" libc = "0.2"

View file

@ -114,7 +114,7 @@ fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new(); let mut c_constants: Vec<(String, String)> = Vec::new();
for l in get_c_output("constant").unwrap().lines() { for l in get_c_output("constant").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let value = words let value = words
.next() .next()
@ -154,7 +154,7 @@ fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new(); let mut c_layouts = Vec::new();
for l in get_c_output("layout").unwrap().lines() { for l in get_c_output("layout").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let size = words let size = words
.next() .next()

View file

@ -1,5 +1,5 @@
[build-dependencies] [build-dependencies]
system-deps = "2.0" system-deps = "3"
[dependencies] [dependencies]
libc = "0.2" libc = "0.2"

View file

@ -114,7 +114,7 @@ fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new(); let mut c_constants: Vec<(String, String)> = Vec::new();
for l in get_c_output("constant").unwrap().lines() { for l in get_c_output("constant").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let value = words let value = words
.next() .next()
@ -154,7 +154,7 @@ fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new(); let mut c_layouts = Vec::new();
for l in get_c_output("layout").unwrap().lines() { for l in get_c_output("layout").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let size = words let size = words
.next() .next()

View file

@ -1,6 +1,6 @@
[build-dependencies] [build-dependencies]
pkg-config = "0.3.7" pkg-config = "0.3.7"
system-deps = "2.0" system-deps = "3"
[dependencies] [dependencies]
libc = "0.2" libc = "0.2"

View file

@ -114,7 +114,7 @@ fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new(); let mut c_constants: Vec<(String, String)> = Vec::new();
for l in get_c_output("constant").unwrap().lines() { for l in get_c_output("constant").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let value = words let value = words
.next() .next()
@ -154,7 +154,7 @@ fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new(); let mut c_layouts = Vec::new();
for l in get_c_output("layout").unwrap().lines() { for l in get_c_output("layout").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let size = words let size = words
.next() .next()

View file

@ -1,5 +1,5 @@
[build-dependencies] [build-dependencies]
system-deps = "2.0" system-deps = "3"
[dependencies] [dependencies]
libc = "0.2" libc = "0.2"

View file

@ -114,7 +114,7 @@ fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new(); let mut c_constants: Vec<(String, String)> = Vec::new();
for l in get_c_output("constant").unwrap().lines() { for l in get_c_output("constant").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let value = words let value = words
.next() .next()
@ -154,7 +154,7 @@ fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new(); let mut c_layouts = Vec::new();
for l in get_c_output("layout").unwrap().lines() { for l in get_c_output("layout").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let size = words let size = words
.next() .next()

View file

@ -114,7 +114,7 @@ fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new(); let mut c_constants: Vec<(String, String)> = Vec::new();
for l in get_c_output("constant").unwrap().lines() { for l in get_c_output("constant").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let value = words let value = words
.next() .next()
@ -154,7 +154,7 @@ fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new(); let mut c_layouts = Vec::new();
for l in get_c_output("layout").unwrap().lines() { for l in get_c_output("layout").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let size = words let size = words
.next() .next()

View file

@ -1,5 +1,5 @@
[build-dependencies] [build-dependencies]
system-deps = "2.0" system-deps = "3"
[dependencies] [dependencies]
libc = "0.2" libc = "0.2"

View file

@ -114,7 +114,7 @@ fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new(); let mut c_constants: Vec<(String, String)> = Vec::new();
for l in get_c_output("constant").unwrap().lines() { for l in get_c_output("constant").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let value = words let value = words
.next() .next()
@ -154,7 +154,7 @@ fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new(); let mut c_layouts = Vec::new();
for l in get_c_output("layout").unwrap().lines() { for l in get_c_output("layout").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let size = words let size = words
.next() .next()

View file

@ -114,7 +114,7 @@ fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new(); let mut c_constants: Vec<(String, String)> = Vec::new();
for l in get_c_output("constant").unwrap().lines() { for l in get_c_output("constant").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let value = words let value = words
.next() .next()
@ -154,7 +154,7 @@ fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new(); let mut c_layouts = Vec::new();
for l in get_c_output("layout").unwrap().lines() { for l in get_c_output("layout").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let size = words let size = words
.next() .next()

View file

@ -114,7 +114,7 @@ fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new(); let mut c_constants: Vec<(String, String)> = Vec::new();
for l in get_c_output("constant").unwrap().lines() { for l in get_c_output("constant").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let value = words let value = words
.next() .next()
@ -154,7 +154,7 @@ fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new(); let mut c_layouts = Vec::new();
for l in get_c_output("layout").unwrap().lines() { for l in get_c_output("layout").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let size = words let size = words
.next() .next()

View file

@ -1,5 +1,5 @@
[build-dependencies] [build-dependencies]
system-deps = "2.0" system-deps = "3"
[dependencies] [dependencies]
libc = "0.2" libc = "0.2"

View file

@ -114,7 +114,7 @@ fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new(); let mut c_constants: Vec<(String, String)> = Vec::new();
for l in get_c_output("constant").unwrap().lines() { for l in get_c_output("constant").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let value = words let value = words
.next() .next()
@ -154,7 +154,7 @@ fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new(); let mut c_layouts = Vec::new();
for l in get_c_output("layout").unwrap().lines() { for l in get_c_output("layout").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let size = words let size = words
.next() .next()

View file

@ -1,5 +1,5 @@
[build-dependencies] [build-dependencies]
system-deps = "2.0" system-deps = "3"
[dependencies] [dependencies]
libc = "0.2" libc = "0.2"

View file

@ -114,7 +114,7 @@ fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new(); let mut c_constants: Vec<(String, String)> = Vec::new();
for l in get_c_output("constant").unwrap().lines() { for l in get_c_output("constant").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let value = words let value = words
.next() .next()
@ -154,7 +154,7 @@ fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new(); let mut c_layouts = Vec::new();
for l in get_c_output("layout").unwrap().lines() { for l in get_c_output("layout").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let size = words let size = words
.next() .next()

View file

@ -1,5 +1,5 @@
[build-dependencies] [build-dependencies]
system-deps = "2.0" system-deps = "3"
[dependencies] [dependencies]
libc = "0.2" libc = "0.2"

View file

@ -114,7 +114,7 @@ fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new(); let mut c_constants: Vec<(String, String)> = Vec::new();
for l in get_c_output("constant").unwrap().lines() { for l in get_c_output("constant").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let value = words let value = words
.next() .next()
@ -154,7 +154,7 @@ fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new(); let mut c_layouts = Vec::new();
for l in get_c_output("layout").unwrap().lines() { for l in get_c_output("layout").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let size = words let size = words
.next() .next()

View file

@ -1,5 +1,5 @@
[build-dependencies] [build-dependencies]
system-deps = "2.0" system-deps = "3"
[dependencies] [dependencies]
libc = "0.2" libc = "0.2"

View file

@ -114,7 +114,7 @@ fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new(); let mut c_constants: Vec<(String, String)> = Vec::new();
for l in get_c_output("constant").unwrap().lines() { for l in get_c_output("constant").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let value = words let value = words
.next() .next()
@ -154,7 +154,7 @@ fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new(); let mut c_layouts = Vec::new();
for l in get_c_output("layout").unwrap().lines() { for l in get_c_output("layout").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let size = words let size = words
.next() .next()

View file

@ -1,5 +1,5 @@
[build-dependencies] [build-dependencies]
system-deps = "2.0" system-deps = "3"
[dependencies] [dependencies]
libc = "0.2" libc = "0.2"

View file

@ -114,7 +114,7 @@ fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new(); let mut c_constants: Vec<(String, String)> = Vec::new();
for l in get_c_output("constant").unwrap().lines() { for l in get_c_output("constant").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let value = words let value = words
.next() .next()
@ -154,7 +154,7 @@ fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new(); let mut c_layouts = Vec::new();
for l in get_c_output("layout").unwrap().lines() { for l in get_c_output("layout").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let size = words let size = words
.next() .next()

View file

@ -1,5 +1,5 @@
[build-dependencies] [build-dependencies]
system-deps = "2.0" system-deps = "3"
[dependencies] [dependencies]
libc = "0.2" libc = "0.2"

View file

@ -114,7 +114,7 @@ fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new(); let mut c_constants: Vec<(String, String)> = Vec::new();
for l in get_c_output("constant").unwrap().lines() { for l in get_c_output("constant").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let value = words let value = words
.next() .next()
@ -154,7 +154,7 @@ fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new(); let mut c_layouts = Vec::new();
for l in get_c_output("layout").unwrap().lines() { for l in get_c_output("layout").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let size = words let size = words
.next() .next()

View file

@ -1,5 +1,5 @@
[build-dependencies] [build-dependencies]
system-deps = "2.0" system-deps = "3"
[dependencies] [dependencies]
libc = "0.2" libc = "0.2"

View file

@ -114,7 +114,7 @@ fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new(); let mut c_constants: Vec<(String, String)> = Vec::new();
for l in get_c_output("constant").unwrap().lines() { for l in get_c_output("constant").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let value = words let value = words
.next() .next()
@ -154,7 +154,7 @@ fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new(); let mut c_layouts = Vec::new();
for l in get_c_output("layout").unwrap().lines() { for l in get_c_output("layout").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let size = words let size = words
.next() .next()

View file

@ -1,5 +1,5 @@
[build-dependencies] [build-dependencies]
system-deps = "2.0" system-deps = "3"
[dependencies] [dependencies]
libc = "0.2" libc = "0.2"

View file

@ -114,7 +114,7 @@ fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new(); let mut c_constants: Vec<(String, String)> = Vec::new();
for l in get_c_output("constant").unwrap().lines() { for l in get_c_output("constant").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let value = words let value = words
.next() .next()
@ -154,7 +154,7 @@ fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new(); let mut c_layouts = Vec::new();
for l in get_c_output("layout").unwrap().lines() { for l in get_c_output("layout").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let size = words let size = words
.next() .next()

View file

@ -1,5 +1,5 @@
[build-dependencies] [build-dependencies]
system-deps = "2.0" system-deps = "3"
[dependencies] [dependencies]
libc = "0.2" libc = "0.2"

View file

@ -114,7 +114,7 @@ fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new(); let mut c_constants: Vec<(String, String)> = Vec::new();
for l in get_c_output("constant").unwrap().lines() { for l in get_c_output("constant").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let value = words let value = words
.next() .next()
@ -154,7 +154,7 @@ fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new(); let mut c_layouts = Vec::new();
for l in get_c_output("layout").unwrap().lines() { for l in get_c_output("layout").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let size = words let size = words
.next() .next()

View file

@ -1,5 +1,5 @@
[build-dependencies] [build-dependencies]
system-deps = "2.0" system-deps = "3"
[dependencies] [dependencies]
libc = "0.2" libc = "0.2"

View file

@ -114,7 +114,7 @@ fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new(); let mut c_constants: Vec<(String, String)> = Vec::new();
for l in get_c_output("constant").unwrap().lines() { for l in get_c_output("constant").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let value = words let value = words
.next() .next()
@ -154,7 +154,7 @@ fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new(); let mut c_layouts = Vec::new();
for l in get_c_output("layout").unwrap().lines() { for l in get_c_output("layout").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let size = words let size = words
.next() .next()

View file

@ -1,5 +1,5 @@
[build-dependencies] [build-dependencies]
system-deps = "2.0" system-deps = "3"
[dependencies] [dependencies]
libc = "0.2" libc = "0.2"

View file

@ -114,7 +114,7 @@ fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new(); let mut c_constants: Vec<(String, String)> = Vec::new();
for l in get_c_output("constant").unwrap().lines() { for l in get_c_output("constant").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let value = words let value = words
.next() .next()
@ -154,7 +154,7 @@ fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new(); let mut c_layouts = Vec::new();
for l in get_c_output("layout").unwrap().lines() { for l in get_c_output("layout").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let size = words let size = words
.next() .next()

View file

@ -1,5 +1,5 @@
[build-dependencies] [build-dependencies]
system-deps = "2.0" system-deps = "3"
[dependencies] [dependencies]
libc = "0.2" libc = "0.2"

View file

@ -114,7 +114,7 @@ fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new(); let mut c_constants: Vec<(String, String)> = Vec::new();
for l in get_c_output("constant").unwrap().lines() { for l in get_c_output("constant").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let value = words let value = words
.next() .next()
@ -154,7 +154,7 @@ fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new(); let mut c_layouts = Vec::new();
for l in get_c_output("layout").unwrap().lines() { for l in get_c_output("layout").unwrap().lines() {
let mut words = l.trim().split(";"); let mut words = l.trim().split(';');
let name = words.next().expect("Failed to parse name").to_owned(); let name = words.next().expect("Failed to parse name").to_owned();
let size = words let size = words
.next() .next()