如果要允许未使用的代码,在前面加上
#[allow(dead_code)]
即可。
参考文献:
https://doc.rust-lang.org/rust-by-example/attribute/unused.html
Except as otherwise noted, this blog is licensed under CC BY-SA 4.0 License.
©2021-
searchstar
|
pv
|
uv
Theme Tree
by Wu Jun
Powered by Hexo