this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Makes Rust template `PrintOptions` and `FontOptions` structs fields public (#2474)

* Make Rust tpl PrintOptions fields public

* Make Rust tpl FontOptions fields public

authored by

Gerard Ruiz and committed by
GitHub
c7fc5704 41e17bc1

+10 -10
+10 -10
templates/rust/src/tic80.rs
··· 523 523 // The macros will avoid the allocation if passed a string literal by adding the null terminator at compile time. 524 524 525 525 pub struct PrintOptions { 526 - color: i32, 527 - fixed: bool, 528 - scale: i32, 529 - small_font: bool, 526 + pub color: i32, 527 + pub fixed: bool, 528 + pub scale: i32, 529 + pub small_font: bool, 530 530 } 531 531 532 532 impl Default for PrintOptions { ··· 581 581 } 582 582 583 583 pub struct FontOptions<'a> { 584 - transparent: &'a [u8], 585 - char_width: i8, 586 - char_height: i8, 587 - fixed: bool, 588 - scale: i32, 589 - alt_font: bool, 584 + pub transparent: &'a [u8], 585 + pub char_width: i8, 586 + pub char_height: i8, 587 + pub fixed: bool, 588 + pub scale: i32, 589 + pub alt_font: bool, 590 590 } 591 591 592 592 impl Default for FontOptions<'_> {