Skip to content

Commit b9d9236

Browse files
committed
Replace mac with matches
1 parent 44162ae commit b9d9236

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

Cargo.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ take_mut = "=0.2.2"
106106
# 1行で書ける`macro_rules`
107107
defmac = "=0.2.1"
108108

109-
# シンプルなマクロの詰め合せ
110-
mac = "=0.1.1"
109+
# パターンを`bool`式に
110+
matches = "=0.1.8"
111111

112112
# `if`と`if let`を『まとめる』マクロ`if_chain!`
113113
if_chain = "=1.0.0"

examples/apg4b-a.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ use itertools as _;
1717
use itertools_num as _;
1818
use lazy_static as _;
1919
use libm as _;
20-
use mac as _;
2120
use maplit as _;
21+
#[allow(unused_imports)]
22+
use matches::matches as _; // https://github.com/rust-lang/rust/issues/66518
2223
use modtype as _;
2324
use nalgebra as _;
2425
use ndarray as _;

0 commit comments

Comments
 (0)