fix: Properly escape module json
This commit is contained in:
parent
ce717118ce
commit
fbf57e5c83
6 changed files with 11 additions and 17 deletions
|
|
@ -152,7 +152,10 @@ fn should_color() -> bool {
|
|||
|
||||
mod filters {
|
||||
#[allow(clippy::unnecessary_wraps)]
|
||||
pub fn replace<T: std::fmt::Display>(input: T, from: char, to: &str) -> rinja::Result<String> {
|
||||
pub fn replace<T>(input: T, from: char, to: &str) -> rinja::Result<String>
|
||||
where
|
||||
T: std::fmt::Display,
|
||||
{
|
||||
Ok(format!("{input}").replace(from, to))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue