Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Vaiz
Copy link
Owner

@Vaiz Vaiz commented Jul 26, 2025

No description provided.

@Vaiz Vaiz requested a review from Copilot July 26, 2025 12:35
Copy link
Contributor

Copilot AI left a 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 + Sync bounds 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

@Vaiz Vaiz merged commit 37ac5f2 into main Jul 26, 2025
13 checks passed
@Vaiz Vaiz deleted the send branch July 26, 2025 12:45
@github-actions github-actions bot mentioned this pull request Jul 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant