From 6f6415a3b29481452f777073003993e966416107 Mon Sep 17 00:00:00 2001 From: Thomas Buckley-Houston Date: Mon, 19 Dec 2022 18:38:06 -0300 Subject: [PATCH] fix: Rust min v1.66. Allow missing_trait_methods Hopefully fixes missing trait lint error --- Cargo.toml | 1 + src/server/errors.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index f87f831..d7eb72d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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] diff --git a/src/server/errors.rs b/src/server/errors.rs index a8f1d30..8aabdfe 100644 --- a/src/server/errors.rs +++ b/src/server/errors.rs @@ -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())