mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
chore: eliminate clippy warns
This commit is contained in:
parent
1b04cbe802
commit
936b6e2f95
26 changed files with 231 additions and 98 deletions
|
@ -205,7 +205,9 @@ impl ASTLowerer {
|
|||
match chunk {
|
||||
Expr::Lit(lit) if lit.is_doc_comment() => {
|
||||
let first_line = lit.ln_begin().unwrap_or(1);
|
||||
let ValueObj::Str(content) = &lit.value else { return; };
|
||||
let ValueObj::Str(content) = &lit.value else {
|
||||
return;
|
||||
};
|
||||
if content.starts_with("erg\n") {
|
||||
let code = content.trim_start_matches("erg\n");
|
||||
let indent = code.chars().take_while(|c| c.is_whitespace()).count();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue