Skip to content

Commit

Permalink
chore: Fix compilation error on newer rust
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Westerlind committed Oct 25, 2022
1 parent e655ee0 commit f30127b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ async fn global(
use std::cell::RefCell;
pub struct Env<T>(RefCell<T>);

pub(crate) fn env(env: &(dyn Compilation + '_)) -> Env<&'_ CompilerDatabase> {
pub(crate) fn env<'a>(env: &'a (dyn Compilation + 'a)) -> Env<&'a CompilerDatabase> {
Env(RefCell::new(env.compiler()))
}
pub(crate) fn snapshot_env<T>(env: T) -> Env<T>
Expand Down

0 comments on commit f30127b

Please sign in to comment.