diff --git a/sway-lsp/src/capabilities/hover/mod.rs b/sway-lsp/src/capabilities/hover/mod.rs index dbcd5a9e786..ac884a63f99 100644 --- a/sway-lsp/src/capabilities/hover/mod.rs +++ b/sway-lsp/src/capabilities/hover/mod.rs @@ -71,7 +71,7 @@ pub fn hover_data( // The `TypeInfo` of the token does not contain an `Ident`. In this case, // we use the `Ident` of the token itself. None => hover_format( - &state.engines.read(), + engines, token, &ident.name, client_config,