]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/util/lev_distance.rs
libsyntax => 2018
[rust.git] / src / libsyntax / util / lev_distance.rs
index e6b81a59d869b194fd039d01de49bcbbb91d6ff1..c989fc7a5b830a80c207de4406a5de2870e12482 100644 (file)
@@ -1,15 +1,5 @@
-// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
 use std::cmp;
-use symbol::Symbol;
+use crate::symbol::Symbol;
 
 /// Find the Levenshtein distance between two strings
 pub fn lev_distance(a: &str, b: &str) -> usize {
@@ -111,7 +101,7 @@ fn test_lev_distance() {
 
 #[test]
 fn test_find_best_match_for_name() {
-    use with_globals;
+    use crate::with_globals;
     with_globals(|| {
         let input = vec![Symbol::intern("aaab"), Symbol::intern("aaabc")];
         assert_eq!(