Skip to content

Commit

Permalink
papergrid/ Add const to Border::filled (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiburt authored Nov 13, 2024
1 parent 10e15af commit 57127a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion papergrid/src/config/border.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ impl<T: Copy> Border<T> {
/// This function constructs a cell borders with all sides's char set to a given character.
///
/// It behaves like [`Border::full`] with the same character set to each side.
pub fn filled(c: T) -> Self {
pub const fn filled(c: T) -> Self {
Self::full(c, c, c, c, c, c, c, c)
}
}
Expand Down

0 comments on commit 57127a5

Please sign in to comment.