Updated compare_license_types to Use References

* The `compare_license_types` function shouldn’t take ownership of its parameters

Signed-off-by: Yakov Manshin <git@yakovmanshin.com>
This commit is contained in:
Yakov Manshin 2022-10-24 05:01:51 +03:00 committed by GitHub
parent b17295b36f
commit 2f30da890d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ mod tests {
let some_software = SomeSoftware {};
let other_software = OtherSoftware {};
assert!(compare_license_types(some_software, other_software));
assert!(compare_license_types(&some_software, &other_software));
}
#[test]
@ -41,6 +41,6 @@ mod tests {
let some_software = SomeSoftware {};
let other_software = OtherSoftware {};
assert!(compare_license_types(other_software, some_software));
assert!(compare_license_types(&other_software, &some_software));
}
}