remove new fns from combinator structs (#434)

This is not idiomatic.
This commit is contained in:
Carl Lerche
2020-10-18 09:55:19 -07:00
committed by GitHub
parent ced050730c
commit 4724c7e8a0
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ pub struct Chain<T, U> {
impl<T, U> Chain<T, U> {
/// Creates a new `Chain` sequencing the provided values.
pub fn new(a: T, b: U) -> Chain<T, U> {
pub(crate) fn new(a: T, b: U) -> Chain<T, U> {
Chain { a, b }
}