Skip to content

Commit d8fef93

Browse files
committed
fix: Moved docs
1 parent 37dffc0 commit d8fef93

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

objectstore-server/src/auth/service.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ use crate::auth::AuthContext;
1616
/// ```
1717
/// use axum::http::StatusCode;
1818
/// use objectstore_server::auth::AuthAwareService;
19-
/// use objectstore_server::error::ApiResult;
2019
///
2120
/// async fn my_endpoint(service: AuthAwareService) -> Result<StatusCode, StatusCode> {
2221
/// service.delete_object(todo!("pass some ID"))

objectstore-server/src/web/middleware.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub fn make_http_span(request: &Request) -> tracing::Span {
4141

4242
/// A panic handler that logs the panic and turns it into a 500 response.
4343
///
44-
/// Use with the [`CatchPanicLayer`] middleware.
44+
/// Use with the [`CatchPanicLayer`](tower_http::catch_panic::CatchPanicLayer) middleware.
4545
pub fn handle_panic(err: Box<dyn Any + Send + 'static>) -> Response {
4646
let detail = if let Some(s) = err.downcast_ref::<String>() {
4747
s.clone()

objectstore-server/src/web/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//! middleware, and the HTTP server. It is a tower service that can be run using any compatible
55
//! server framework.
66
//!
7-
//! To listen to incoming connections, use the [`server`] function, which opens a TCP listener and
7+
//! To listen to incoming connections, use the [`server()`] function, which opens a TCP listener and
88
//! serves the application.
99
//!
1010
//! # Testing

0 commit comments

Comments
 (0)