<commit_before>extern crate conduit;

use std::error::Error;

use conduit::{Handler, Request, Response};

pub trait Middleware: Send + Sync + 'static {
    fn before(&self, _: &mut dyn Request) -> Result<(), Box<dyn Error + Send>> {
        Ok(())
    }<commit_msg>Enable warnings for 2018 idioms<commit_after>#![warn(rust_2018_idioms)]
extern crate conduit;

use std::error::Error;

use conduit::{Handler, Request, Response};

pub trait Middleware: Send + Sync + 'static {
    fn before(&self, _: &mut dyn Request) -> Result<(), Box<dyn Error + Send>> {
        Ok(())
    }
{'fraction_non_alphanumeric': 0.16, 'fraction_numerical': 0.01391304347826087, 'mean_word_length': 4.236363636363636, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5576040', 'n_tokens_mistral': 193, 'n_tokens_neox': 180, 'n_words': 55}