Refactor: to_ics to as_ics

This commit is contained in:
Lennart
2023-09-16 14:07:52 +02:00
parent 7edb041eb7
commit 78a5a95aa6
3 changed files with 4 additions and 4 deletions

View File

@@ -19,11 +19,11 @@ impl Event {
pub fn get_etag(&self) -> String {
let mut hasher = Sha256::new();
hasher.update(&self.uid);
hasher.update(self.to_ics());
hasher.update(self.as_ics());
format!("{:x}", hasher.finalize())
}
pub fn to_ics(&self) -> &str {
pub fn as_ics(&self) -> &str {
&self.ics
}
}