remove const generics dependancy

serve
Avril 4 years ago
parent 988829c9b9
commit c1e60503a6
Signed by: flanchan
GPG Key ID: 284488987C31F630

2
Cargo.lock generated

@ -639,7 +639,7 @@ dependencies = [
[[package]] [[package]]
name = "markov" name = "markov"
version = "0.6.0" version = "0.6.2"
dependencies = [ dependencies = [
"async-compression", "async-compression",
"cfg-if 1.0.0", "cfg-if 1.0.0",

@ -1,6 +1,6 @@
[package] [package]
name = "markov" name = "markov"
version = "0.6.1" version = "0.6.2"
description = "Generate string of text from Markov chain fed by stdin" description = "Generate string of text from Markov chain fed by stdin"
authors = ["Avril <flanchan@cumallover.me>"] authors = ["Avril <flanchan@cumallover.me>"]
edition = "2018" edition = "2018"

@ -1,5 +1,4 @@
#![feature(split_inclusive)] #![feature(split_inclusive)]
#![feature(min_const_generics)]
#![allow(dead_code)] #![allow(dead_code)]

@ -14,6 +14,7 @@ use once_cell::sync::OnceCell;
#[derive(Debug, Clone, PartialEq, Eq)] #[derive(Debug, Clone, PartialEq, Eq)]
pub struct Filter(SmallMap<char, ()>); pub struct Filter(SmallMap<char, ()>);
/*
impl<const N: usize> From<[char; N]> for Filter impl<const N: usize> From<[char; N]> for Filter
{ {
fn from(from: [char; N]) -> Self fn from(from: [char; N]) -> Self
@ -25,7 +26,7 @@ impl<const N: usize> From<[char; N]> for Filter
} }
Self(map) Self(map)
} }
} }*/
impl<'a> From<&'a [char]> for Filter impl<'a> From<&'a [char]> for Filter
{ {

Loading…
Cancel
Save