pub(crate) fn did_fill_error_scope<T>( device: &Device, callback: impl FnOnce() -> T, filter: ErrorFilter, ) -> (bool, T)