Skip to content

Commit

Permalink
(fix) Remove default type parameter
Browse files Browse the repository at this point in the history
Needed for Rust 1.10
  • Loading branch information
alex-gulyas committed Jul 8, 2016
1 parent 51650cd commit f78f2b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ pub enum Entry<'a, K, A: ?Sized + UnsafeAnyExt + 'a = UnsafeAny> {
Vacant(VacantEntry<'a, K, A>)
}

impl<'a, K: Key, A: ?Sized + UnsafeAnyExt + 'a = UnsafeAny> Entry<'a, K, A> {
impl<'a, K: Key, A: ?Sized + UnsafeAnyExt + 'a> Entry<'a, K, A> {
/// Ensures a value is in the entry by inserting the default if empty, and returns
/// a mutable reference to the value in the entry.
pub fn or_insert(self, default: K::Value) -> &'a mut K::Value
Expand Down

0 comments on commit f78f2b4

Please sign in to comment.