mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Use Self everywhere (#3787)
This turns on the clippy lint [`clippy::use_self`](https://rust-lang.github.io/rust-clippy/v0.0.212/index.html#use_self) and fixes it everywhere.
This commit is contained in:
@@ -59,7 +59,7 @@ def lint_lines(filepath, lines_in):
|
||||
)
|
||||
lines_out.append("\n")
|
||||
|
||||
if re.search(r"\(mut self.*-> Self", line):
|
||||
if re.search(r"\(mut self.*-> Self", line) and "pub(crate)" not in line:
|
||||
if prev_line.strip() != "#[inline]":
|
||||
errors.append(
|
||||
f"{filepath}:{line_nr}: builder methods should be marked #[inline]"
|
||||
|
||||
Reference in New Issue
Block a user