Skip to content

Commit

Permalink
Fix build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-hellhake authored and benfrancis committed Oct 8, 2024
1 parent d2f3b59 commit df8c5ca
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/pdns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,6 @@ enum PdnsResponseParams {
Lookup(PdnsLookupResponse),
}

#[derive(Serialize)]
struct PdnsBoolResponse {
result: bool,
}

#[derive(Serialize)]
struct PdnsVecResponse {
result: Vec<PdnsResponseParams>,
}

#[derive(Serialize)]
#[serde(untagged)]
enum PdnsResponse {
Expand Down Expand Up @@ -732,12 +722,12 @@ fn handle_socket_request(mut stream: UnixStream, config: &Config) {
}
Err(err) => {
error!("handle_socket_request(): Error serializing JSON: {}", err);
send!(error_response.clone());
send!(error_response);
}
},
Err(err) => {
error!("handle_socket_request(): Error processing request: {}", err);
send!(error_response.clone());
send!(error_response);
}
}
}
Expand Down

0 comments on commit df8c5ca

Please sign in to comment.