Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed May 27, 2024
1 parent 27dd998 commit d00e3e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions viz-router/src/resources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::Route;

/// A Kind for generating Resources path.
#[derive(Clone, Debug, PartialEq, Eq)]
pub(crate) enum Kind {
enum Kind {
/// index | create
Empty,
/// new: `new`
Expand All @@ -27,7 +27,7 @@ pub(crate) enum Kind {
pub struct Resources {
name: String,
singular: bool,
pub(crate) routes: Vec<(Kind, Route)>,
routes: Vec<(Kind, Route)>,
}

impl Resources {
Expand Down Expand Up @@ -69,7 +69,7 @@ impl Resources {
self
}

pub(crate) fn on<H, O>(mut self, kind: Kind, method: Method, handler: H) -> Self
fn on<H, O>(mut self, kind: Kind, method: Method, handler: H) -> Self
where
H: Handler<Request, Output = Result<O>> + Clone,
O: IntoResponse,
Expand Down
4 changes: 2 additions & 2 deletions viz-router/src/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ mod tests {
format!("{tree:#?}"),
"Tree {
method: GET,
paths:
paths:
/ •0
├── api/search •6
├── se
Expand All @@ -515,7 +515,7 @@ mod tests {
└── : •3
,
method: POST,
paths:
paths:
/
└── : •0
,
Expand Down

0 comments on commit d00e3e6

Please sign in to comment.