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

Commitfa2f56a

Browse files
committed
fix: Remove trailing pipe
1 parent32dc464 commitfa2f56a

23 files changed

+42
-160
lines changed

‎examples/expected_type.svg‎

Lines changed: 2 additions & 4 deletions
Loading

‎examples/footer.svg‎

Lines changed: 4 additions & 6 deletions
Loading

‎examples/format.svg‎

Lines changed: 2 additions & 4 deletions
Loading

‎examples/multislice.svg‎

Lines changed: 5 additions & 9 deletions
Loading

‎src/renderer/display_list.rs‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
//! 152 | | return "test";
2121
//! 153 | | }
2222
//! | |___^ error: expected `String`, for `&str`.
23-
//! |
2423
//! ```
2524
//!
2625
//! The first two lines of the example above are `Raw` lines, while the rest
@@ -1013,7 +1012,6 @@ fn format_message(
10131012
sets.push(format_snippet(
10141013
snippet,
10151014
idx ==0,
1016-
!footer.is_empty(),
10171015
term_width,
10181016
anonymized_line_numbers,
10191017
));
@@ -1092,7 +1090,6 @@ fn format_label(
10921090
fnformat_snippet(
10931091
snippet: snippet::Snippet<'_>,
10941092
is_first:bool,
1095-
has_footer:bool,
10961093
term_width:usize,
10971094
anonymized_line_numbers:bool,
10981095
) ->DisplaySet<'_>{
@@ -1102,7 +1099,6 @@ fn format_snippet(
11021099
letmut body =format_body(
11031100
snippet,
11041101
need_empty_header,
1105-
has_footer,
11061102
term_width,
11071103
anonymized_line_numbers,
11081104
);
@@ -1290,7 +1286,6 @@ fn fold_body(body: Vec<DisplayLine<'_>>) -> Vec<DisplayLine<'_>> {
12901286
fnformat_body(
12911287
snippet: snippet::Snippet<'_>,
12921288
need_empty_header:bool,
1293-
has_footer:bool,
12941289
term_width:usize,
12951290
anonymized_line_numbers:bool,
12961291
) ->DisplaySet<'_>{
@@ -1605,21 +1600,6 @@ fn format_body(
16051600
);
16061601
}
16071602

1608-
if has_footer{
1609-
body.push(DisplayLine::Source{
1610-
lineno:None,
1611-
inline_marks:vec![],
1612-
line:DisplaySourceLine::Empty,
1613-
annotations:vec![],
1614-
});
1615-
}elseifletSome(DisplayLine::Source{ ..}) = body.last(){
1616-
body.push(DisplayLine::Source{
1617-
lineno:None,
1618-
inline_marks:vec![],
1619-
line:DisplaySourceLine::Empty,
1620-
annotations:vec![],
1621-
});
1622-
}
16231603
let max_line_num_len =if anonymized_line_numbers{
16241604
ANONYMIZED_LINE_NUM.len()
16251605
}else{

‎tests/fixtures/color/ann_eof.svg‎

Lines changed: 1 addition & 3 deletions
Loading

‎tests/fixtures/color/ann_insertion.svg‎

Lines changed: 1 addition & 3 deletions
Loading

‎tests/fixtures/color/ann_multiline.svg‎

Lines changed: 1 addition & 3 deletions
Loading

‎tests/fixtures/color/ann_multiline2.svg‎

Lines changed: 1 addition & 3 deletions
Loading

‎tests/fixtures/color/ann_removed_nl.svg‎

Lines changed: 1 addition & 3 deletions
Loading

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp