index StaticSearcher &'static str by &'static str

credit
- https://stackoverflow.com/questions/65549983/trait-borrowstring-is-not-implemented-for-str/65550108#65550108
This commit is contained in:
Andy Weidenbaum
2021-02-15 11:33:45 +11:00
parent f159a7cc27
commit 4aa2f52dd7
2 changed files with 6 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ fn add_searcher_works() {
#[test]
fn add_static_searcher_works() {
let lume = read_lume_to_str();
let name = "lume".to_string();
let name = "lume";
let mut map = HashMap::new();
map.insert(name, lume);