Format source codes and update tests
This commit is contained in:
parent
cf8b191852
commit
9777c0de93
@ -501,7 +501,8 @@ fn rewrite_use_list(
|
||||
fn move_self_to_front(items: &mut Vec<ListItem>) -> bool {
|
||||
match items
|
||||
.iter()
|
||||
.position(|item| item.item.as_ref().map(|x| &x[..]) == Some("self")) {
|
||||
.position(|item| item.item.as_ref().map(|x| &x[..]) == Some("self"))
|
||||
{
|
||||
Some(pos) => {
|
||||
items[0] = items.remove(pos);
|
||||
true
|
||||
|
@ -390,7 +390,8 @@ fn issue1395() {
|
||||
fn issue1456() {
|
||||
Ok(Recording {
|
||||
artists: match reader
|
||||
.evaluate(".//mb:recording/mb:artist-credit/mb:name-credit")? {
|
||||
.evaluate(".//mb:recording/mb:artist-credit/mb:name-credit")?
|
||||
{
|
||||
Nodeset(nodeset) => {
|
||||
let res: Result<Vec<ArtistRef>, ReadError> = nodeset
|
||||
.iter()
|
||||
|
Loading…
x
Reference in New Issue
Block a user