Skip to content

Commit 4f29a48

Browse files
committed
chore: Apply cargo fmt formatting
- Align struct field comments - Remove extra blank line in style.rs
1 parent d82b537 commit 4f29a48

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

examples/text_box_document.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
6161
CustomTextBoxStyle {
6262
alignment: TextBoxAlignment::Center,
6363
border_style: TextBoxBorderStyle::Dashed,
64-
border_color: 0x0000FF, // blue border
64+
border_color: 0x0000FF, // blue border
6565
background_color: 0xE6F3FF, // light blue background
6666
},
6767
)?;
@@ -75,7 +75,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
7575
CustomTextBoxStyle {
7676
alignment: TextBoxAlignment::Left,
7777
border_style: TextBoxBorderStyle::Solid,
78-
border_color: 0x00AA00, // green border
78+
border_color: 0x00AA00, // green border
7979
background_color: 0xE6FFE6, // light green background
8080
},
8181
)?;

src/writer/style.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ pub enum BorderLineType {
310310
Thick = 5,
311311
}
312312

313-
314313
impl Default for BorderLineStyle {
315314
fn default() -> Self {
316315
Self {

tests/text_box_test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ fn test_custom_text_box() {
134134
CustomTextBoxStyle {
135135
alignment: TextBoxAlignment::Center,
136136
border_style: TextBoxBorderStyle::Dashed,
137-
border_color: 0x0000FF, // blue border
137+
border_color: 0x0000FF, // blue border
138138
background_color: 0xF0F0F0, // light gray background
139139
},
140140
)
@@ -259,7 +259,7 @@ fn test_multiple_text_boxes() {
259259
CustomTextBoxStyle {
260260
alignment: TextBoxAlignment::Right,
261261
border_style: TextBoxBorderStyle::Double,
262-
border_color: 0x800080, // purple
262+
border_color: 0x800080, // purple
263263
background_color: 0xFFE0FF, // light purple
264264
},
265265
)

0 commit comments

Comments
 (0)