Format source codes and update tests

This commit is contained in:
Seiichi Uchida 2017-07-20 00:09:43 +09:00
parent cf8b191852
commit 9777c0de93
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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()