]> git.scottworley.com Git - tablify/blobdiff - src/lib.rs
Appease clippy::impl_trait_in_params
[tablify] / src / lib.rs
index fb556109741920890a7a1f25573ea56871dcd6d9..ac52b1fb61f184ae0f7c4dd48592e832311e52a5 100644 (file)
@@ -457,7 +457,7 @@ fn render_column_headers(config: &Config, columns: &[String]) -> HTML {
 ///   * there's an i/o error while reading `input`
 ///   * the log has invalid syntax:
 ///     * an indented line with no preceding non-indented line
-pub fn tablify(input: impl std::io::Read) -> Result<HTML, std::io::Error> {
+pub fn tablify<R: std::io::Read>(input: R) -> Result<HTML, std::io::Error> {
     let (rows, config) = read_input(input)?;
     let columns = column_order(&config, &rows);
     Ok(HTML(format!(