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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user