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
ファイルの変更監視 (10.1節) のexampleコードの追加 #74
Conversation
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.
nightlyの箇所だけ必要に応じて修正をお願いします。
それ以外のコメントはコード修正は必須ではないです。
chapter10/rust-toolchain
Outdated
@@ -0,0 +1 @@ | |||
nightly |
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.
nightlyはどこで必要ですか?
仮にこの問題だけで必要だとしても、10章全体に効力が及ぶのでちょっとやり方は考えたいです。
(自分で試した感じ10.1もstableで動きそうでした)
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.
すみません、mainブランチのReadme見て勘違いしてました…僕の手元でもstableで動作確認できたのでdeleteします。
@@ -0,0 +1,31 @@ | |||
use notify::Watcher as _; |
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.
[質問] as _
の書き方は初めてみました 👀
trait有効にするためだとは思いますが、自分は use notify::Watcher;
とだけやってしまいます。
この書き方は世の中で結構するものなんですか?
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.
underscore importといって、トレイト以外ではやらない書き方なので、個人的に好きな書き方でした。ですがTwiiterで聞いたところ、複数の同じ名前のトレイトを使用する際に回避策として使うことができるようです。
cf. [Rust] anyhow::Context を use したいが名前が被ってしまうときの解決策 -> impl-only-use
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.
ありがとうございます!勉強になります 📝
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.
💯
@@ -0,0 +1,31 @@ | |||
use notify::Watcher as _; |
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.
ありがとうございます!勉強になります 📝
レビューありがとうございます、コンフリクト解消などでできることあればぜひ!(gitのベストプラクティスに詳しくないので適当な手段をサジェストできなくて申し訳ないのですが…) |
5/16 23:59 まで開いておきますー! |
@denjiry お手数ですが、コンフリクトの解決をお願いできますか? |
|
対応ありがとうございました!マージしますね |
対象の Issue
#69
動作確認結果