mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 14:02:29 +00:00
Refactor: to_ics to as_ics
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user