01版 - 十四届全国人大常委会第二十一次会议在京闭幕

· · 来源:user资讯

Opens in a new window

Diesen Artikel weiterlesen mit SPIEGEL+

从模板到实战。业内人士推荐WPS下载最新地址作为进阶阅读

更多详细新闻请浏览新京报网 www.bjnews.com.cn

The very first thing I did was create a AGENTS.md for Rust by telling Opus 4.5 to port over the Python rules to Rust semantic equivalents. This worked well enough and had the standard Rust idioms: no .clone() to handle lifetimes poorly, no unnecessary .unwrap(), no unsafe code, etc. Although I am not a Rust expert and cannot speak that the agent-generated code is idiomatic Rust, none of the Rust code demoed in this blog post has traces of bad Rust code smell. Most importantly, the agent is instructed to call clippy after each major change, which is Rust’s famous linter that helps keep the code clean, and Opus is good about implementing suggestions from its warnings. My up-to-date Rust AGENTS.md is available here.

Трамп сдел