Skip to content

Commit

Permalink
Remove accidentally added string filter
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez authored and djc committed May 15, 2024
1 parent e78c48e commit 7f4c8cc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions askama/src/filters/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,12 +511,6 @@ pub fn wordcount(s: impl ToString) -> Result<usize, Infallible> {
wordcount(s.to_string())
}

/// Converts a type to a `String`.
#[inline]
pub fn string(s: impl ToString) -> Result<String, Infallible> {
Ok(s.to_string())
}

/// Return a title cased version of the value. Words will start with uppercase letters, all
/// remaining characters are lowercase.
#[inline]
Expand Down

0 comments on commit 7f4c8cc

Please sign in to comment.