style: fix some clippy errors
Some checks failed
Publish Docker Images / build-and-publish (push) Has been cancelled
Some checks failed
Publish Docker Images / build-and-publish (push) Has been cancelled
This commit is contained in:
10
README.md
10
README.md
@@ -3,7 +3,13 @@ include_toc: true
|
||||
gitea: none
|
||||
---
|
||||
|
||||
# phundrak.com Backend
|
||||
<h1 align="center">Bakit</h1>
|
||||
<div align="center">
|
||||
<strong>
|
||||
A backend for my personal website
|
||||
</strong>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
<div align="center">
|
||||
<a href="https://sonar.phundrak.com/dashboard?id=phundrak-backend" target="_blank">
|
||||
@@ -20,8 +26,6 @@ gitea: none
|
||||
</a>
|
||||
</div>
|
||||
|
||||
The backend for [phundrak.com](https://phundrak.com), built with Rust and the [Poem](https://github.com/poem-web/poem) web framework.
|
||||
|
||||
## Features
|
||||
|
||||
- **RESTful API** with automatic OpenAPI/Swagger documentation
|
||||
|
||||
@@ -268,7 +268,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn from_validation_errors_with_name_error() {
|
||||
use validator::{Validate, ValidationError};
|
||||
use validator::Validate;
|
||||
|
||||
#[derive(Validate)]
|
||||
struct TestStruct {
|
||||
|
||||
@@ -933,7 +933,7 @@ mod tests {
|
||||
assert!(result.is_err());
|
||||
match result.unwrap_err() {
|
||||
ContactError::CouldNotParseSettingsEmail(_) => (),
|
||||
e => panic!("Expected CouldNotParseSettingsEmail, got {:?}", e),
|
||||
e => panic!("Expected CouldNotParseSettingsEmail, got {e:?}"),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -964,7 +964,7 @@ mod tests {
|
||||
assert!(result.is_err());
|
||||
match result.unwrap_err() {
|
||||
ContactError::CouldNotParseRequestEmailAddress(_) => (),
|
||||
e => panic!("Expected CouldNotParseRequestEmailAddress, got {:?}", e),
|
||||
e => panic!("Expected CouldNotParseRequestEmailAddress, got {e:?}"),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -996,7 +996,7 @@ mod tests {
|
||||
assert!(result.is_err());
|
||||
match result.unwrap_err() {
|
||||
ContactError::CouldNotSendEmail(_) => (),
|
||||
e => panic!("Expected CouldNotSendEmail, got {:?}", e),
|
||||
e => panic!("Expected CouldNotSendEmail, got {e:?}"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user