CurlStimulus: take axis and center directly from the Region

by taking more from the region, we'll be able to reuse common code
and also make this more testable
This commit is contained in:
2022-08-09 22:10:16 -07:00
parent 7d1ee0ad50
commit 1771973c6d
4 changed files with 9 additions and 18 deletions

View File

@@ -84,8 +84,6 @@ fn main() {
driver.add_stimulus(CurlStimulus::new(
region.clone(),
wave.clone(),
region.center(),
region.axis()
));
};