Skip to content

Commit 49f2697

Browse files
committed
fix: Correct indentation in Router implementation and update test assertion formatting
1 parent aa5f248 commit 49f2697

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ipc_http_server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ impl Router {
320320
{
321321
let handler_fn: HandlerFn = Box::new(move |ctx| Box::pin(handler(ctx)));
322322
let handler = Arc::new(handler_fn);
323-
let tree = self.trees.entry(method).or_default();
323+
let tree = self.trees.entry(method).or_default();
324324
let _ = tree.insert(path, handler);
325325
self
326326
}
@@ -1096,6 +1096,6 @@ mod tests {
10961096
ctx.path_params = params;
10971097

10981098
let response = (handler)(ctx).await.unwrap();
1099-
assert_eq!(response.body.as_ref(), b"User ID: 123");
1099+
assert_eq!(response.body.as_ref(), b"User ID: 123");
11001100
}
11011101
}

0 commit comments

Comments
 (0)