Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite2fe177

Browse files
Revert "Simplify arithmetic operation in logical lines checker (#11346)" (#11348)
## SummaryI merged this, but I think it might not be the same behavior? See mycomment at:#11346 (comment)
1 parente9d1cdd commite2fe177

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎crates/ruff_linter/src/checkers/logical_lines.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub(crate) fn expand_indent(line: &str, indent_width: IndentWidth) -> usize {
2424
let tab_size = indent_width.as_usize();
2525
for cin line.bytes(){
2626
match c{
27-
b'\t' => indent+= tab_size,
27+
b'\t' => indent=(indent / tab_size)* tab_size + tab_size,
2828
b' ' => indent +=1,
2929
_ =>break,
3030
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp