bile |
| a simple self-hosted git server |
| git clone https://git.wayver.dev/bile |
| README | tree | log | refs |
Commit: db2bc30f716095872b4ea33adafe072c0a8a7242 (tree)
Parent: 375565f690b958e08f589a7fee998ad5f47a70d0 (tree)
Author: wayverd
Date: 2026 M02 17, Tue 21:59:43 -0500
2 files changed; 8 insertions 1 deletions
diff --git a/src/utils/error.rs b/src/utils/error.rs
index 933aff4..a21e323 100644
use std::{convert, fmt};
use axum::response;
+use http::StatusCode;
use tracing_error::SpanTrace;
pub type Result<T, E = Error> = std::result::Result<T, E>;
impl response::IntoResponse for Error {
fn into_response(self) -> response::Response {
- todo!()
+ super::Error::Failure {
+ status: StatusCode::INTERNAL_SERVER_ERROR,
+ err: self,
+ }
+ .into_response()
}
}
diff --git a/src/utils/filters.rs b/src/utils/filters.rs
index e1a6076..fbada2b 100644
+#![allow(clippy::inline_always, reason = "generated by askama filter_fn")]
+
use git2::{Commit, Signature, Time};
use jiff::{
Timestamp,