Skip to content

Commit

Permalink
generic parameter names
Browse files Browse the repository at this point in the history
  • Loading branch information
quinchs committed Feb 27, 2024
1 parent ac4be32 commit e7dadbf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/portable/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ pub fn read(path: &Path) -> anyhow::Result<Config> {
})
}

pub fn modify_core<T, U, V, W>(parsed: &W, input: &String, config: &Path, selector: T, value: &U, format: V) -> anyhow::Result<bool>
pub fn modify_core<Selector, Value, Formatter, Config>(parsed: &Config, input: &String, config: &Path, selector: Selector, value: &Value, format: Formatter) -> anyhow::Result<bool>
where
T: Fn(&W) -> &Option<Spanned<U>>,
U: std::cmp::PartialEq,
V: FnOnce(&U) -> String,
Selector: Fn(&Config) -> &Option<Spanned<Value>>,
Value: std::cmp::PartialEq,
Formatter: FnOnce(&Value) -> String,
{
use std::fmt::Write;

Expand Down

0 comments on commit e7dadbf

Please sign in to comment.