No unused imports/vars/etc. diagnostics with rust-analyzer

Title says it all, getting no diagnostics for unused anything; the warnings appear in the terminal when building the project, but nothing in nvim. vim.lsp.diagnostic.show_line_diagnostics doesn’t yield any diagnostics for the lines either, as I guess would be expected, but still not sure what’s causing this? I don’t think it has anything to do with how I’m setting up RA with nvim-lspconfig, since even with no real configuration this is still an issue.

Is there an option I’m missing somewhere, or what could be causing this?