Skip to content

Commit

Permalink
Apply fmt and clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
diego-plan9 committed Aug 29, 2023
1 parent 4b948cd commit b005f51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/lillinput-cli/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ pub fn setup_application(opts: Opts, initialize_logging: bool) -> Result<Setting
for (key, value) in &mut final_settings.actions {
let mut prune = false;
// Check each action string, for debugging purposes.
for entry in value.iter() {
for entry in &*value {
if !enabled_action_types.contains(&entry.type_) {
log_entries.push(LogEntry::warn(format!(
"Removing malformed or disabled action in {key}: {entry}",
Expand Down Expand Up @@ -363,7 +363,7 @@ pub fn extract_action_map(
if let Some(arguments) = settings.actions.get(&action_event.to_string()) {
let mut actions_list: Vec<Box<dyn Action>> = vec![];

for value in arguments.iter() {
for value in &*arguments {
// Create the new actions.
match ActionType::from_str(&value.type_) {
Ok(ActionType::Command) => {
Expand Down
2 changes: 1 addition & 1 deletion crates/lillinput/src/actions/i3action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl Action for I3Action {
return Err(ActionError::ExecutionError {
type_: "i3".into(),
message: "i3 connection is not set".into(),
})
});
};

match connection.run_command(&self.command) {
Expand Down

0 comments on commit b005f51

Please sign in to comment.