1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-21 05:05:44 +02:00

Param ctor is private

This commit is contained in:
Nikolay Kim
2017-12-27 19:19:28 -08:00
parent 8941557da6
commit 093d0bae40
3 changed files with 9 additions and 11 deletions

View File

@@ -24,13 +24,11 @@ pub trait FromParam: Sized {
#[derive(Debug)]
pub struct Params<'a>(SmallVec<[(Cow<'a, str>, Cow<'a, str>); 3]>);
impl<'a> Default for Params<'a> {
fn default() -> Params<'a> {
impl<'a> Params<'a> {
pub(crate) fn new() -> Params<'a> {
Params(SmallVec::new())
}
}
impl<'a> Params<'a> {
pub(crate) fn clear(&mut self) {
self.0.clear();