Fix example
This commit is contained in:
parent
75ce72e4ce
commit
e715eb4930
|
@ -13,8 +13,8 @@ struct Claims {
|
||||||
|
|
||||||
// Example validation implementation
|
// Example validation implementation
|
||||||
impl Claims {
|
impl Claims {
|
||||||
fn is_valid(self) -> bool {
|
fn is_valid(&self) -> bool {
|
||||||
if self.company != "ACME".to_owned() {
|
if self.company != "ACME" {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// expiration etc
|
// expiration etc
|
||||||
|
|
Loading…
Reference in New Issue