Skip to content

Commit

Permalink
Remove warning from test
Browse files Browse the repository at this point in the history
  • Loading branch information
Keats committed Mar 11, 2024
1 parent c073d05 commit 9868902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator_derive_tests/tests/run-pass/optional_field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use validator::{Validate, ValidationError};
#[derive(Debug, serde::Serialize, serde::Deserialize)]
pub struct CountryCode(pub String);

fn validate_country_code(country_code: &Option<CountryCode>) -> Result<(), ValidationError> {
fn validate_country_code(_country_code: &Option<CountryCode>) -> Result<(), ValidationError> {
if false {
Ok(())
} else {
Expand Down

0 comments on commit 9868902

Please sign in to comment.