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
/rariPublic

Commit33c5291

Browse files
committed
ci(test): show fix-flaws changes
1 parent59f3bf6 commit33c5291

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

‎.github/workflows/test.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,11 @@ jobs:
5757
env:
5858
GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }}
5959
run:cargo run --release content fix-flaws
60+
61+
-name:Show content changes
62+
working-directory:content
63+
run:git diff --word-diff
64+
65+
-name:Show translated-content changes
66+
working-directory:translated-content
67+
run:git diff --word-diff

‎crates/rari-tools/src/fix/issues.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ fn calc_offset(input: &str, olc: OLCMapper, new_line: usize, new_column: usize)
294294
};
295295
// Verify the calculated offset is on a UTF-8 character boundary
296296
ifletSome(mut offset_value) = offset
297-
&& offset_value < input.len() && !input.is_char_boundary(offset_value)
297+
&& offset_value < input.len()
298+
&& !input.is_char_boundary(offset_value)
298299
{
299300
tracing::warn!(
300301
"calculated offset {} is not on char boundary - adjusting (this may indicate a bug)",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp