try_for_each
を使った。 https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.try_for_each
self .page_repository() .find_ids()? .into_iter() .try_for_each(|page_id| f(&page_id)),
はじめ map(|page_id| f(&page_id))
して collect::<Result<()>>
していたのだけど lint に try_for_each
しろと言われた。なるほど。
helix editor day 1
まずはインストールから。ぼくは macOS を使っているので Homebrew でインストールする。
$ brew tap helix-editor/helix ... $ brew install helix ...
実は以前からインストールしているので upgrade 。
$ brew update && brew upgrade helix ...
$ hx --version helix 0.5.0
今日のコミット。
- rust-memo 2 commits
- rust-atcoder 1 commit