File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -214,13 +214,13 @@ impl TryFrom<&LspUrl> for Url {
214
214
pub struct StringLiteralResult {
215
215
/// The path that a string literal resolves to.
216
216
pub url : LspUrl ,
217
- /// A function that takes the AstModule at path specified by `url` and that same url , and
217
+ /// A function that takes the AstModule at path specified by `url`, and
218
218
/// allows resolving a location to jump to within the specific URL if desired.
219
219
///
220
220
/// If `None`, then just jump to the URL. Do not attempt to load the file.
221
221
#[ derivative( Debug = "ignore" ) ]
222
222
pub location_finder :
223
- Option < Box < dyn FnOnce ( & AstModule , & LspUrl ) -> anyhow:: Result < Option < Range > > + Send > > ,
223
+ Option < Box < dyn FnOnce ( & AstModule ) -> anyhow:: Result < Option < Range > > + Send > > ,
224
224
}
225
225
226
226
fn _assert_string_literal_result_is_send ( ) {
@@ -498,7 +498,7 @@ impl<T: LspContext> Backend<T> {
498
498
let result =
499
499
self . get_ast_or_load_from_disk ( & url)
500
500
. and_then ( |ast| match ast {
501
- Some ( module) => location_finder ( & module. ast , & url ) ,
501
+ Some ( module) => location_finder ( & module. ast ) ,
502
502
None => Ok ( None ) ,
503
503
} ) ;
504
504
if let Err ( e) = & result {
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ impl LspContext for TestServerContext {
193
193
LspUrl :: File ( u) => match u. extension ( ) {
194
194
Some ( e) if e == "star" => Some ( StringLiteralResult {
195
195
url,
196
- location_finder : Some ( Box :: new ( move |_ast, _url | Ok ( range) ) ) ,
196
+ location_finder : Some ( Box :: new ( move |_ast| Ok ( range) ) ) ,
197
197
} ) ,
198
198
_ => Some ( StringLiteralResult {
199
199
url,
You can’t perform that action at this time.
0 commit comments