make results optional

This commit is contained in:
yggverse 2024-09-27 16:23:59 +03:00
parent 89aed28056
commit ad8ebe87e5
6 changed files with 27 additions and 23 deletions

View file

@ -34,9 +34,9 @@ impl Subject {
}
// Actions
pub fn update(&self, title: GString, description: GString) {
self.title.update(&title);
self.description.update(&description);
pub fn update(&self, title: Option<GString>, description: Option<GString>) {
self.title.update(title);
self.description.update(description);
}
// Getters