Skip to content

Commit e513293

Browse files
committed
clippy: correctly disallow tokio unbounded channel
1 parent 76015a1 commit e513293

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.clippy.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
too-many-arguments-threshold = 20
22
disallowed-methods = [
33
# unbounded channels are for expert use only
4-
{ path = "tokio::sync::mpsc::unbounded", reason = "use a bounded channel instead" },
4+
{ path = "tokio::sync::mpsc::unbounded_channel", reason = "use a bounded channel instead" },
55
{ path = "futures::channel::mpsc::unbounded", reason = "use a bounded channel instead" },
66
{ path = "futures_channel::mpsc::unbounded", reason = "use a bounded channel instead" },
77
]

0 commit comments

Comments
 (0)