From e715eb4930bcfd181d07fb6c1c3b0f8e452154f9 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Mon, 26 Dec 2016 13:20:18 +0900 Subject: [PATCH] Fix example --- examples/claims.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/claims.rs b/examples/claims.rs index 6b27c73..1c138ad 100644 --- a/examples/claims.rs +++ b/examples/claims.rs @@ -13,8 +13,8 @@ struct Claims { // Example validation implementation impl Claims { - fn is_valid(self) -> bool { - if self.company != "ACME".to_owned() { + fn is_valid(&self) -> bool { + if self.company != "ACME" { return false; } // expiration etc