@@ -1066,7 +1066,7 @@ impl<Checker: BuildRunnable, Parser: Parsable> Server<Checker, Parser> {
10661066 pub ( crate ) fn get_mod_ctx (
10671067 & self ,
10681068 uri : & NormalizedUrl ,
1069- ) -> Option < MappedRwLockReadGuard < ModuleContext > > {
1069+ ) -> Option < MappedRwLockReadGuard < ' _ , ModuleContext > > {
10701070 let path = uri. to_file_path ( ) . ok ( ) ?;
10711071 let ent = self . shared . get_module ( & path) ?;
10721072 Some ( MappedRwLockReadGuard :: map ( ent, |ent| & ent. module ) )
@@ -1111,7 +1111,7 @@ impl<Checker: BuildRunnable, Parser: Parsable> Server<Checker, Parser> {
11111111 self . restore_entry ( uri, entry) ;
11121112 }
11131113
1114- pub ( crate ) fn get_visitor ( & self , uri : & NormalizedUrl ) -> Option < HIRVisitor > {
1114+ pub ( crate ) fn get_visitor ( & self , uri : & NormalizedUrl ) -> Option < HIRVisitor < ' _ > > {
11151115 let path = uri. to_file_path ( ) . ok ( ) ?;
11161116 let Some ( ent) = self . shared . get_module ( & path) else {
11171117 _log ! ( self , "module not found: {uri}" ) ;
@@ -1122,7 +1122,11 @@ impl<Checker: BuildRunnable, Parser: Parsable> Server<Checker, Parser> {
11221122 Some ( HIRVisitor :: new ( hir, & self . file_cache , uri. clone ( ) ) )
11231123 }
11241124
1125- pub ( crate ) fn get_searcher ( & self , uri : & NormalizedUrl , kind : ExprKind ) -> Option < HIRVisitor > {
1125+ pub ( crate ) fn get_searcher (
1126+ & self ,
1127+ uri : & NormalizedUrl ,
1128+ kind : ExprKind ,
1129+ ) -> Option < HIRVisitor < ' _ > > {
11261130 let path = uri. to_file_path ( ) . ok ( ) ?;
11271131 let ent = self . shared . get_module ( & path) ?;
11281132 ent. hir . as_ref ( ) ?;
@@ -1294,7 +1298,7 @@ impl<Checker: BuildRunnable, Parser: Parsable> Server<Checker, Parser> {
12941298 self . shared . insert_module ( path. into ( ) , entry) ;
12951299 }
12961300
1297- pub fn get_hir ( & self , uri : & NormalizedUrl ) -> Option < MappedRwLockReadGuard < HIR > > {
1301+ pub fn get_hir ( & self , uri : & NormalizedUrl ) -> Option < MappedRwLockReadGuard < ' _ , HIR > > {
12981302 let path = uri. to_file_path ( ) . ok ( ) ?;
12991303 let ent = self . shared . get_module ( & path) ?;
13001304 MappedRwLockReadGuard :: try_map ( ent, |ent| ent. hir . as_ref ( ) ) . ok ( )
@@ -1310,7 +1314,7 @@ impl<Checker: BuildRunnable, Parser: Parsable> Server<Checker, Parser> {
13101314 self . shared . insert_module ( path. into ( ) , entry) ;
13111315 }
13121316
1313- pub fn get_ast ( & self , uri : & NormalizedUrl ) -> Option < MappedRwLockReadGuard < Module > > {
1317+ pub fn get_ast ( & self , uri : & NormalizedUrl ) -> Option < MappedRwLockReadGuard < ' _ , Module > > {
13141318 let path = uri. to_file_path ( ) . ok ( ) ?;
13151319 let ent = self . shared . get_module ( & path) ?;
13161320 MappedRwLockReadGuard :: try_map ( ent, |ent| ent. ast . as_ref ( ) ) . ok ( )
0 commit comments