Commit d9fdcbd3 authored by Alex Butler's avatar Alex Butler
Browse files

Merge branch 'v0.2' into 'v0.2'

Fix NLL migration warning

See merge request redox-os/rusttype!147
parents 2745cedb 276dd752
[package]
name = "rusttype"
version = "0.2.3"
version = "0.2.4"
authors = [
"Dylan Ede <dylanede@googlemail.com>",
"Jeremy Soller <jackpot51@gmail.com>"
......
......@@ -74,9 +74,9 @@ impl<K, V> Drop for BTreeMap<K, V> {
impl<K: Clone, V: Clone> Clone for BTreeMap<K, V> {
fn clone(&self) -> BTreeMap<K, V> {
fn clone_subtree<K: Clone, V: Clone>(
node: node::NodeRef<marker::Immut, K, V, marker::LeafOrInternal>)
-> BTreeMap<K, V> {
fn clone_subtree<'a, K: 'a + Clone, V: 'a + Clone>(
node: node::NodeRef<marker::Immut<'a>, K, V, marker::LeafOrInternal>
) -> BTreeMap<K, V> {
match node.force() {
Leaf(leaf) => {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment