Skip to content

Commit

Permalink
Merge pull request #1694 from HTGAzureX1212/nightly
Browse files Browse the repository at this point in the history
Fix Compiler Errors
  • Loading branch information
HTGAzureX1212 authored Dec 6, 2023
2 parents 0869fb0 + 84e8073 commit 06f4156
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions api-backend/hartex-backend-models/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ use serde::Deserialize;
///
/// This is the object returned by a certain API endpoint.
#[derive(Deserialize)]
pub struct Response<'a, T> {
pub struct Response<T> {
code: u16,
message: &'a str,
message: String,
data: T,
}

impl<'a, T> Response<'a, T>
impl<'a, T> Response<T>
where
T: Clone + Deserialize<'a>,
{
Expand All @@ -50,8 +50,8 @@ where
}

/// The message of the response.
pub fn message(&self) -> &'a str {
self.message
pub fn message(&self) -> String {
self.message.clone()
}

/// The data of the response.
Expand Down

0 comments on commit 06f4156

Please sign in to comment.