-
Notifications
You must be signed in to change notification settings - Fork 3
fix: enable future_not_send lint #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enables the future_not_send lint by removing the lint allowance and fixing all resulting compilation issues. The lint ensures that futures are Send, which is important for async code that may be moved between threads.
Key changes include:
- Removing the
future_not_send = "allow"lint configuration - Converting reference parameters (
&RPCContext<T>) to owned parameters (RPCContext<T>) throughout handler functions - Adding
Send + Syncbounds to trait parameters for serializable types - Adding explicit trait bounds for generic type parameters
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| Cargo.toml | Removes the future_not_send = "allow" lint configuration |
| crates/nfs3_tests/src/server.rs | Adds NfsFileSystem trait bound to Server struct |
| crates/nfs3_server/src/vfs/adapters/iterator.rs | Fixes documentation link formatting |
| crates/nfs3_server/src/rpcwire.rs | Changes context parameter from reference to owned value |
| crates/nfs3_server/src/portmap_handlers.rs | Updates handler functions to take owned RPCContext and adds trait bounds |
| crates/nfs3_server/src/nfs_handlers.rs | Updates NFS handler functions to take owned RPCContext |
| crates/nfs3_server/src/mount_handlers.rs | Updates mount handler functions to take owned RPCContext and adds trait bounds |
| crates/nfs3_server/src/context.rs | Adds NfsFileSystem trait bound to RPCContext struct and implementations |
| crates/nfs3_client/src/rpc.rs | Adds Send + Sync bounds to Pack trait parameters |
| crates/nfs3_client/src/portmapper.rs | Adds Send + Sync bounds to Pack trait parameters |
| crates/nfs3_client/src/nfs.rs | Adds Send + Sync bounds to Pack trait parameters |
| crates/nfs3_client/src/net.rs | Adds Sync bound to Connector trait |
| crates/nfs3_client/src/mount.rs | Adds Send + Sync bounds to Pack trait parameters |
| crates/nfs3_client/src/connect.rs | Adds Send bound to connection type parameter |
No description provided.