Merge pull request #952 from gcarrillo/dev/egcarril/master/allow_identical_description

Allow cheatsheet items with same descriptions
This commit is contained in:
Denis Isidoro 2025-03-10 15:47:27 -03:00 committed by GitHub
commit da42bf5d26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,6 +18,6 @@ impl Item {
}
pub fn hash(&self) -> u64 {
fnv(&format!("{}{}", &self.tags.trim(), &self.comment.trim()))
fnv(&format!("{}{}{}", &self.tags.trim(), &self.comment.trim(), &self.snippet.trim()))
}
}