Nik Revenco

Results 87 issues of Nik Revenco

This is useful when you need "just any `Key`", e.g. my usage in particular is to `#[derive(strum::EnumIter)` on a type which includes the `Key` as it requires `Default`

### Description I propose to move these lints from `restriction` into a new allow-by-default category `panics`. This category contains lints that are related to preventing panics somehow: - `expect_used` -...

C-enhancement

This PR introduces a `complexity` lint `concealed_obvious_default` which checks usages of `Option::::unwrap_or_default()` on a type with an obvious default and suggests using `Option::::unwrap_or()` instead. It checks similar methods on `Result`...

S-waiting-on-review

Proposal to add dedented string literals to Rust of the form: `d"string"`. With the following: ```rs let sql = d" create table student( id int primary key, name text )...

T-lang

Typst uses [`syntect`](https://github.com/trishume/syntect) for syntax highlighting. This PR additionally adds support for syntax highlighting with tree-sitter. Tree-sitter has several advantages over the current approach: - Far more customizable and integrated...

I use nightly Rust in `rust-toolchain.toml` to get the nightly version of tools (clippy, rust-analyzer, rustfmt): ```rs toolchain.channel = "nightly-2025-08-24" ``` But my project is supposed to build on stable...

I would like to enable the server in all files, however it shows warnings on repositories which I contribute to, when they don't have a `.typos.toml` file set up. Would...

Today, I wanted to switch to using `Vec::with_capacity` instead of `Vec::new` while iterating over a [`toml_edit::Table`](https://docs.rs/toml_edit/latest/toml_edit/struct.Table.html): ```rs let v = Vec::with_capacity(table.len()); ``` But to my surprise, the [`Table::len`](https://docs.rs/toml_edit/latest/toml_edit/struct.Table.html#method.len) method actually...

When you launch helix with `hx`, you are greeted with... an empty void: ![image](https://github.com/user-attachments/assets/3abd9e46-cb83-4772-9342-879b587e1820) It's whatever if you already know your way around Helix, but what if it's your first...

Colors for units in languages that support them is inconsistent, as there's no definition for them in the style guide. I propose to define them as Yellow, same as types....