Skip to content

Commit

Permalink
fix: Rust min v1.66. Allow missing_trait_methods
Browse files Browse the repository at this point in the history
Hopefully fixes missing trait lint error
  • Loading branch information
tombh committed Dec 21, 2022
1 parent a9313f7 commit 6f6415a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ license = "AGPL-3.0"
keywords = ["authentication", "laws", "preservation"]
categories = ["authentication", "web-programming::http-server"]
repository = "https://github.com/openlawlibrary/stele"
rust-version = "1.66"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
Expand Down
1 change: 1 addition & 0 deletions src/server/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pub enum SteleError {
GitError,
}

#[allow(clippy::missing_trait_methods)]
impl error::ResponseError for SteleError {
fn error_response(&self) -> HttpResponse {
HttpResponse::build(self.status_code()).body(self.to_string())
Expand Down

0 comments on commit 6f6415a

Please sign in to comment.