Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonInTheDark committed Jul 9, 2024
1 parent 11230d4 commit 456f78c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions hypnagogic_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
#![allow(clippy::cast_sign_loss)]
// error we can't do anything about because of dependancies
#![allow(clippy::multiple_crate_versions)]
// map makes less sense in some contexts
#![allow(clippy::bind_instead_of_map)]
// throws in cases where `` obfuscates what's going on (code links)
#![allow(clippy::doc_markdown)]

pub mod config;
pub mod generation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl IconOperationConfig for BitmaskSliceReconstruct {
.clone()
.into_iter()
.filter_map(|(mut state, suffix)| {
state.name = suffix.clone();
state.name.clone_from(&suffix);
if bespoke.get(suffix.as_str()).is_some() {
bespoke_found.push(suffix);
Some(state)
Expand Down Expand Up @@ -215,7 +215,7 @@ impl IconOperationConfig for BitmaskSliceReconstruct {
if let Some(actual_delay) = delays {
config.push("[animation]".to_string());
config.push(format!("delays = {}", text_delays(&actual_delay, "")));
if rewind == true {
if rewind {
config.push(format!("rewind = {rewind}"));
}
config.push(String::new());
Expand Down

0 comments on commit 456f78c

Please sign in to comment.