From 5476c4faa34ae2ec8f736ec21e3965ed8e33c225 Mon Sep 17 00:00:00 2001 From: memoryruins Date: Fri, 15 Nov 2019 06:45:58 -0500 Subject: Update smallvec dep to 1.0 --- crates/ra_mbe/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates') diff --git a/crates/ra_mbe/Cargo.toml b/crates/ra_mbe/Cargo.toml index e8ef2457b..b02e45ee3 100644 --- a/crates/ra_mbe/Cargo.toml +++ b/crates/ra_mbe/Cargo.toml @@ -9,7 +9,7 @@ ra_syntax = { path = "../ra_syntax" } ra_parser = { path = "../ra_parser" } tt = { path = "../ra_tt", package = "ra_tt" } rustc-hash = "1.0.0" -smallvec = "0.6.9" +smallvec = "1.0.0" log = "0.4.5" [dev-dependencies] -- cgit v1.2.3 From a5f57f98ca4c0afb1c292da6676a1273ce95f0e0 Mon Sep 17 00:00:00 2001 From: memoryruins Date: Fri, 15 Nov 2019 06:53:11 -0500 Subject: Heed the advice of rustc's into_iter() warning --- crates/ra_hir_expand/src/quote.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'crates') diff --git a/crates/ra_hir_expand/src/quote.rs b/crates/ra_hir_expand/src/quote.rs index 9cd17f0e3..35133d216 100644 --- a/crates/ra_hir_expand/src/quote.rs +++ b/crates/ra_hir_expand/src/quote.rs @@ -241,10 +241,8 @@ mod tests { // } let struct_name = mk_ident("Foo"); let fields = [mk_ident("name"), mk_ident("id")]; - let fields = fields - .into_iter() - .map(|it| quote!(#it: self.#it.clone(), ).token_trees.clone()) - .flatten(); + let fields = + fields.iter().map(|it| quote!(#it: self.#it.clone(), ).token_trees.clone()).flatten(); let list = tt::Subtree { delimiter: tt::Delimiter::Brace, token_trees: fields.collect() }; -- cgit v1.2.3