-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
impl ExploreService #79
Conversation
47503bb
to
32d0752
Compare
filter out unrelatedは collect newly containedは今は新しい位置と古い位置の両方で
|
filter_mapを使うようにしました。 |
b004d7d
to
ea9960b
Compare
cf56a4e
to
741a6c6
Compare
matchを切り出した。 Eventの範囲判定忘れてたので書いた。 |
cad5d24
to
2ff976f
Compare
server/src/explore/impl.rs
Outdated
+ ProvideExplorerService, | ||
{ | ||
async_stream::try_stream! { | ||
let (id, mut exploration_field_stream) = (params.id, params.stream); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let (id, mut exploration_field_stream) = (params.id, params.stream); | |
let super::ExploreParams { id, stream: mut exploration_field_stream } = params; |
server/src/explore/impl.rs
Outdated
let x_min = center.x - size.width / 2; | ||
let x_max = center.x + size.width / 2; | ||
let y_min = center.y - size.height / 2; | ||
let y_max = center.y + size.height / 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
u32::saturating_add
とか使って欲しいです
https://doc.rust-lang.org/std/primitive.u32.html#method.saturating_add
No description provided.