fix Writer / remove [where Debug]

This commit is contained in:
Dmitry Belyaev 2022-10-10 01:19:44 +03:00
parent f361a35b65
commit 7c27a20ebd

View File

@ -56,7 +56,7 @@ where
impl<T> Writer<T> impl<T> Writer<T>
where where
T: bincode::Encode + std::fmt::Debug, T: bincode::Encode,
{ {
pub fn new<P: AsRef<Path>>(path: P, opts: WriterOpts) -> Result<Self, String> { pub fn new<P: AsRef<Path>>(path: P, opts: WriterOpts) -> Result<Self, String> {
let out = fs::File::create(path).str_err()?; let out = fs::File::create(path).str_err()?;