Skip to content

Commit

Permalink
feat: Allow creating an empty Params instance.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeMathWalker authored Oct 31, 2024
1 parent 8e66ae9 commit 09491f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ enum ParamsKind<'k, 'v> {
}

impl<'k, 'v> Params<'k, 'v> {
pub(crate) fn new() -> Self {
/// Create an empty list of parameters.
pub fn new() -> Self {

Check failure on line 67 in src/params.rs

View workflow job for this annotation

GitHub Actions / Clippy Lints

you should consider adding a `Default` implementation for `Params<'k, 'v>`
Self {
kind: ParamsKind::Small([Param::EMPTY; 3], 0),
}
Expand Down

0 comments on commit 09491f5

Please sign in to comment.