Skip to content

Commit

Permalink
remove leading _
Browse files Browse the repository at this point in the history
  • Loading branch information
CLEMENTINATOR committed Feb 4, 2025
1 parent 1e65812 commit 901b574
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ struct Component;
*/

impl Guest for Component {
fn page(_edgee_event: Event, _settings: Dict) -> Result<EdgeeRequest, String> {
#[allow(unused_variables)]
fn page(edgee_event: Event, settings: Dict) -> Result<EdgeeRequest, String> {
Ok(EdgeeRequest {
method: HttpMethod::Post,
url: format!("https://example.com/{}", "page"),
Expand All @@ -32,7 +33,8 @@ impl Guest for Component {
})
}

fn track(_edgee_event: Event, _settings: Dict) -> Result<EdgeeRequest, String> {
#[allow(unused_variables)]
fn track(edgee_event: Event, settings: Dict) -> Result<EdgeeRequest, String> {
Ok(EdgeeRequest {
method: HttpMethod::Post,
url: format!("https://example.com/{}", "track"),
Expand All @@ -45,7 +47,8 @@ impl Guest for Component {
})
}

fn user(_edgee_event: Event, _settings: Dict) -> Result<EdgeeRequest, String> {
#[allow(unused_variables)]
fn user(edgee_event: Event, settings: Dict) -> Result<EdgeeRequest, String> {
Ok(EdgeeRequest {
method: HttpMethod::Post,
url: format!("https://example.com/{}", "user"),
Expand Down

0 comments on commit 901b574

Please sign in to comment.