Rayon's thread builder API requires ownership

This commit is contained in:
Alan Jeffrey 2019-06-03 17:26:21 -05:00
parent f5b5843c31
commit a2c8d71a3f
1 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,9 @@ pub trait Window {
fn present_open_svg_dialog(&mut self); fn present_open_svg_dialog(&mut self);
fn run_save_dialog(&self, extension: &str) -> Result<PathBuf, ()>; fn run_save_dialog(&self, extension: &str) -> Result<PathBuf, ()>;
fn adjust_thread_pool_settings(&self, _: &mut ThreadPoolBuilder) {} fn adjust_thread_pool_settings(&self, builder: ThreadPoolBuilder) -> ThreadPoolBuilder {
builder
}
} }
pub enum Event { pub enum Event {