Skip to content

Instantly share code, notes, and snippets.

@lazywhite
Last active January 12, 2023 06:02
Show Gist options
  • Save lazywhite/91ae2874884e969b588d42c44e718989 to your computer and use it in GitHub Desktop.
Save lazywhite/91ae2874884e969b588d42c44e718989 to your computer and use it in GitHub Desktop.

I enabled rust_analyzer in astronvim, when ParseIntError is not found in this scope, I want to add the import automaticlly.

With Goland, I can use Alt + Enter to see available import, how can I achive this in astronvim?

fn try_to_parse() -> Result<i32, ParseIntError> {     // cannot find type `ParseIntError` in this scope not found in this scope
    let x: i32 = "100".parse()?;
    let y: i32 = "10a".parse()?;
    Ok(x + y)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment