From 4e3128223b215bb84fc25ac4394f8ed44d1c27bb Mon Sep 17 00:00:00 2001 From: Shotaro Yamada Date: Mon, 29 Oct 2018 22:39:34 +0900 Subject: [PATCH] Fix test --- src/libsyntax/util/lev_distance.rs | 3 ++- src/test/run-pass-fulldeps/ast_stmt_expr_attr.rs | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsyntax/util/lev_distance.rs b/src/libsyntax/util/lev_distance.rs index feee2422cb6..fb281154be0 100644 --- a/src/libsyntax/util/lev_distance.rs +++ b/src/libsyntax/util/lev_distance.rs @@ -38,7 +38,8 @@ pub fn lev_distance(a: &str, b: &str) -> usize { current = next; t_last = j; } - } dcol[t_last + 1] + } + dcol[t_last + 1] } /// Find the best match for a given word in the given iterator diff --git a/src/test/run-pass-fulldeps/ast_stmt_expr_attr.rs b/src/test/run-pass-fulldeps/ast_stmt_expr_attr.rs index 8f54f2e2dc3..f7fa2798051 100644 --- a/src/test/run-pass-fulldeps/ast_stmt_expr_attr.rs +++ b/src/test/run-pass-fulldeps/ast_stmt_expr_attr.rs @@ -25,7 +25,6 @@ use syntax::parse::parser::Parser; use syntax::parse::token; use syntax::ptr::P; -use syntax::str::char_at; use syntax::parse::attr::*; use syntax::print::pprust; use std::fmt;