RustQ.Clippy (rustq v0.9.2)

Copy Markdown View Source

Idiomatic Rusty-Elixir helpers for Clippy lint attribute paths.

Use these through use RustQ.Meta, which aliases this module as Clippy:

@allow Clippy.redundant_field_names
defrust build(value) do
  ...
end

The helper returns RustQ path metadata that renders as #[allow(clippy::redundant_field_names)].

Summary

Functions

Returns a Clippy lint path for name.

Returns the clippy::redundant_field_names lint path.

Functions

lint(name)

@spec lint(atom() | String.t()) :: RustQ.Rust.AST.Path.t()

Returns a Clippy lint path for name.

redundant_field_names()

@spec redundant_field_names() :: RustQ.Rust.AST.Path.t()

Returns the clippy::redundant_field_names lint path.