Skip to content

Commit 1f90a36

Browse files
committed
Fix some lifetime issues that the compiler complains about.
Presumably these are related to the 2018 edition.
1 parent 313af7a commit 1f90a36

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/snapshot_vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl<D> fmt::Debug for SnapshotVec<D>
4949
D::Undo: fmt::Debug,
5050
D::Value: fmt::Debug
5151
{
52-
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
52+
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
5353
fmt.debug_struct("SnapshotVec")
5454
.field("values", &self.values)
5555
.field("undo_log", &self.undo_log)

src/unify/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ impl<S: UnificationStore> UnificationTable<S> {
422422
/// ////////////////////////////////////////////////////////////////////////
423423
/// Public API
424424
425-
impl<'tcx, S, K, V> UnificationTable<S>
425+
impl<S, K, V> UnificationTable<S>
426426
where
427427
S: UnificationStore<Key = K, Value = V>,
428428
K: UnifyKey<Value = V>,

0 commit comments

Comments
 (0)