Skip to main content

unused_import_actions

Function unused_import_actions 

Source
pub fn unused_import_actions(
    doc: &DocumentState,
    range: Range,
    uri: &Url,
    ws: &dyn WorkspaceView,
) -> Vec<CodeActionOrCommand>
Expand description

“Remove unused import” quickfixes: an Import X. whose module’s names are never referenced in this file. The editor complement of the largo check unused-import warning — a one-click removal.