Related Issues (20)
- Use Cargo workspace dependencies
- Avoid combining closures with futures if no input parameter is present
- Returning reference to a lazily initialised value inside struct is hard
- Check modules can be built in isolation too in workspace projects
- Write unit tests as soon as possible in Rust too
- Replace usages of RefCell with compile time mutability checks
- Mutable and immutable code logic can result in duplication
- Representing data that can be both owned or borrowed is hard
- Rust has 3 duplication dimensions
- Prefer implementing traits instead of defining inherent pub fn
- Separate owned vs borrowed data into different types
- Decouple Serde-serialized data format from business logic data format
- Solve double mutable borrow problem by using inner field
- Prefer extension methods using traits
- Use impl blocks to remove type and lifetime parameter duplication
- Use enum_dispatch or enum_delegate crates to implement static dispatch
- Cargo.lock can contain yanked versions, but cargo will fail to update Cargo.lock (based on new yanked versions in Cargo.toml)
- Avoid `Rc<RefCell<T>>` by propagating `&mut T` to all places where it is used, but not through `self`
- Fix `cannot return value referencing temporary value` by using closures for duplication removal
- `cargo clippy --fix` is smarter than `cargo clippy`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clean-rust.