Skip to content

Commit

Permalink
Fix some clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
CaspianA1 committed Dec 19, 2024
1 parent 4d122fe commit 2ad1ef1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/spinitron/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub trait SpinitronModel {
inner_behavior: impl FnOnce(&'a str) -> MaybeTextureCreationInfo<'a>,
make_fallback_for_no_url: impl FnOnce() -> MaybeTextureCreationInfo<'a>)

-> MaybeTextureCreationInfo where Self: Sized {
-> MaybeTextureCreationInfo<'a> where Self: Sized {

if let Some(url) = maybe_url {
if !url.is_empty() {
Expand Down
2 changes: 1 addition & 1 deletion src/texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub struct DisplayText<'a> {
text: Cow<'a, str>
}

impl<'a> DisplayText<'a> {
impl DisplayText<'_> {
pub fn new(text: &str) -> Self {
// Indicates that emojis should be made colored; not rendered correctly on the Pi
const UNICODE_VARIATION_SELECTOR_16: char = '\u{FE0F}';
Expand Down

0 comments on commit 2ad1ef1

Please sign in to comment.