Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
snendev committed Aug 15, 2024
1 parent 45e79e9 commit 330cbb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/game/src/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl Action {
pub fn apply(&self, word: &mut Word, dictionary: &Dictionary) {
match self {
Append(letter) => {
let test_string = format!("{}{}", word.to_string(), letter.to_string());
let test_string = format!("{}{}", word, letter);
if dictionary.is_word_substring(test_string.as_str()) {
word.push(*letter);
info!("Added {letter}, making {word}");
Expand Down
2 changes: 1 addition & 1 deletion plugins/game/src/wordlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub const WORD_LIST: &str = include_str!("wordlist.txt");
#[derive(Resource, Reflect)]
pub struct WordList(Vec<String>);

impl<'a> Default for WordList {
impl Default for WordList {
fn default() -> Self {
Self(
WORD_LIST
Expand Down

0 comments on commit 330cbb1

Please sign in to comment.