Skip to content

Commit

Permalink
implementing Default
Browse files Browse the repository at this point in the history
  • Loading branch information
amitu committed Nov 3, 2023
1 parent 69af598 commit 14f53c2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions fastn-core/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ pub fn ok_with_content_type(
.body(data)
}

#[derive(Debug, Clone)]
#[derive(Debug, Clone, Default)]
pub struct Request {
method: String,
uri: String,
Expand All @@ -90,12 +90,6 @@ pub struct Request {
// path_params: Vec<(String, )>
}

impl Default for Request {
fn default() -> Self {
todo!()
}
}

impl Request {
//pub fn get_named_params() -> {}
pub fn from_actix(req: actix_web::HttpRequest, body: actix_web::web::Bytes) -> Self {
Expand Down

0 comments on commit 14f53c2

Please sign in to comment.