Make method name more explicit

This commit is contained in:
Hanno Braun 2022-03-18 15:38:23 +01:00
parent 3574ed401e
commit b0d26c0dc9
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ fn main() -> anyhow::Result<()> {
return Ok(()); return Ok(());
} }
let watcher = model.watch(parameters)?; let watcher = model.load_and_watch(parameters)?;
let event_loop = EventLoop::new(); let event_loop = EventLoop::new();
let window = Window::new(&event_loop); let window = Window::new(&event_loop);

View File

@ -96,7 +96,7 @@ impl Model {
Ok(shape) Ok(shape)
} }
pub fn watch( pub fn load_and_watch(
self, self,
parameters: HashMap<String, String>, parameters: HashMap<String, String>,
) -> Result<Watcher, Error> { ) -> Result<Watcher, Error> {