From 2f9f4dbb3a7bb6d74e6b5ffb5e75d02e39232f71 Mon Sep 17 00:00:00 2001 From: Avril Date: Sun, 11 Oct 2020 10:56:40 +0100 Subject: [PATCH] added /sentance/ chunking --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/sanitise/.#filter.rs | 1 - src/sanitise/filter.rs | 10 +++++----- 4 files changed, 7 insertions(+), 8 deletions(-) delete mode 120000 src/sanitise/.#filter.rs diff --git a/Cargo.lock b/Cargo.lock index c366482..1411a9d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -639,7 +639,7 @@ dependencies = [ [[package]] name = "markov" -version = "0.5.4" +version = "0.6.0" dependencies = [ "async-compression", "cfg-if 1.0.0", diff --git a/Cargo.toml b/Cargo.toml index c51f2df..0ad5f3b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "markov" -version = "0.6" +version = "0.6.0" description = "Generate string of text from Markov chain fed by stdin" authors = ["Avril "] edition = "2018" diff --git a/src/sanitise/.#filter.rs b/src/sanitise/.#filter.rs deleted file mode 120000 index e39f68a..0000000 --- a/src/sanitise/.#filter.rs +++ /dev/null @@ -1 +0,0 @@ -avril@eientei.880:1602382403 \ No newline at end of file diff --git a/src/sanitise/filter.rs b/src/sanitise/filter.rs index c570dd7..686b1b5 100644 --- a/src/sanitise/filter.rs +++ b/src/sanitise/filter.rs @@ -119,12 +119,12 @@ impl Filter self.len() == 0 } - pub fn iter(&self) -> impl Iterator + '_ + pub fn iter(&self) -> FilterKeyIter<'_> //impl Iterator + '_ { - self.0.iter() - .copied() - .map(|(x, _)| x) - //FilterKeyIter(self.0.iter(), self.0.len()) + //self.0.iter() + // .copied() + // .map(|(x, _)| x) + FilterKeyIter(self.0.iter(), self.0.len()) } /// Should this character be filtered?