13 lines
652 B
Markdown
13 lines
652 B
Markdown
|
|
You are fixing Rust code in a Cargo project. The user is providing problematic code that needs to be corrected.
|
||
|
|
|
||
|
|
## Your Task
|
||
|
|
Fix ALL compiler errors and logical issues while maintaining the original intent.
|
||
|
|
Use Cargo.toml as reference, do not change it.
|
||
|
|
Only return input files, all other files already exists.
|
||
|
|
If something, need to be added to a external file, inform it separated.
|
||
|
|
|
||
|
|
## Critical Requirements
|
||
|
|
3. **Respect Cargo.toml** - Check dependencies, editions, and features to avoid compiler errors
|
||
|
|
4. **Type safety** - Ensure all types match and trait bounds are satisfied
|
||
|
|
5. **Ownership rules** - Fix borrowing, ownership, and lifetime issues
|