Use &str instead of &String
This commit is contained in:
parent
3196c278c0
commit
1500b7c890
|
@ -24,10 +24,10 @@ impl Fairing {
|
|||
}
|
||||
|
||||
impl CsrfToken {
|
||||
pub fn verify(&self, form_authenticity_token: &String)
|
||||
pub fn verify(&self, form_authenticity_token: &str)
|
||||
-> Result<(), VerificationFailure>
|
||||
{
|
||||
if self.0 == *form_authenticity_token {
|
||||
if self.0 == form_authenticity_token {
|
||||
Ok(())
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue