rua
This commit is contained in:
parent
7e0bff5607
commit
2ea2082064
@ -1 +1 @@
|
||||
Subproject commit f113523671ae3f3c5b0096bc01da0af924205315
|
||||
Subproject commit f703b9dde1d6f509febe0cf05083135f2b1f1151
|
@ -389,8 +389,7 @@ pub fn py_assert_ship(path: String) -> bool {
|
||||
if e.name().as_ref() == b"Ship" {
|
||||
// 再验证一下 version, liftedOff, touchingGround
|
||||
let mut founds = (false, false, false);
|
||||
for attr in e.attributes() {
|
||||
if let Ok(attr) = attr {
|
||||
for attr in e.attributes().flatten() {
|
||||
match attr.key.as_ref() {
|
||||
b"version" => {
|
||||
founds.0 = true;
|
||||
@ -402,7 +401,6 @@ pub fn py_assert_ship(path: String) -> bool {
|
||||
founds.2 = true;
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
}
|
||||
if !(founds.0 && founds.1 && founds.2) {
|
||||
|
Loading…
Reference in New Issue
Block a user