Skip to content

Commit a94fdac

Browse files
committed
Rename text::Align conversion to &str, as suggested by Clippy
1 parent aa02784 commit a94fdac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/text.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub enum Align {
2929

3030
impl Align {
3131
#[inline]
32-
fn to_str(&self) -> &str {
32+
fn as_str(&self) -> &str {
3333
match self {
3434
Align::Left => "left",
3535
Align::Center => "center",
@@ -82,7 +82,7 @@ impl Text {
8282

8383
set!(
8484
/// Set the horizontal alignment relative to the anchor point.
85-
set_horizontalalignment, align, Align, align.to_str());
85+
set_horizontalalignment, align, Align, align.as_str());
8686

8787
set!(
8888
/// Set the rotation of the text.

0 commit comments

Comments
 (0)