Skip to content

Commit ec6cd15

Browse files
giuseppeclaude
andcommitted
Cargo: move to Rust edition 2024
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
1 parent 7557460 commit ec6cd15

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "jsonrpc-fdpass"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55
description = "JSON-RPC 2.0 with Unix file descriptor passing"
66
authors = ["Colin Walters <walters@verbum.org>"]
77
license = "MIT OR Apache-2.0"

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,14 @@ pub mod transport;
119119

120120
pub use error::{Error, Result};
121121
pub use jsonrpsee::types::error::{
122-
ErrorCode, ErrorObject as JsonRpcError, CALL_EXECUTION_FAILED_CODE, INTERNAL_ERROR_CODE,
122+
CALL_EXECUTION_FAILED_CODE, ErrorCode, ErrorObject as JsonRpcError, INTERNAL_ERROR_CODE,
123123
INTERNAL_ERROR_MSG, INVALID_PARAMS_CODE, INVALID_PARAMS_MSG, INVALID_REQUEST_CODE,
124124
INVALID_REQUEST_MSG, METHOD_NOT_FOUND_CODE, METHOD_NOT_FOUND_MSG, PARSE_ERROR_CODE,
125125
PARSE_ERROR_MSG,
126126
};
127127
pub use message::{
128-
file_descriptor_error, JsonRpcMessage, JsonRpcNotification, JsonRpcRequest, JsonRpcResponse,
129-
MessageWithFds, FILE_DESCRIPTOR_ERROR_CODE,
128+
FILE_DESCRIPTOR_ERROR_CODE, JsonRpcMessage, JsonRpcNotification, JsonRpcRequest,
129+
JsonRpcResponse, MessageWithFds, file_descriptor_error,
130130
};
131131
pub use server::Server;
132-
pub use transport::{Receiver, Sender, UnixSocketTransport, DEFAULT_MAX_FDS_PER_SENDMSG};
132+
pub use transport::{DEFAULT_MAX_FDS_PER_SENDMSG, Receiver, Sender, UnixSocketTransport};

src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::error::{Error, Result};
2-
use crate::message::{file_descriptor_error, JsonRpcMessage, JsonRpcResponse, MessageWithFds};
2+
use crate::message::{JsonRpcMessage, JsonRpcResponse, MessageWithFds, file_descriptor_error};
33
use crate::transport::{Sender, UnixSocketTransport};
44
use jsonrpsee::types::error::ErrorObject;
55
use serde_json::Value;

src/transport.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::error::{Error, Result};
2-
use crate::message::{get_fd_count, JsonRpcMessage, JsonRpcNotification, MessageWithFds};
2+
use crate::message::{JsonRpcMessage, JsonRpcNotification, MessageWithFds, get_fd_count};
33
use rustix::fd::AsFd;
44
use rustix::net::{
55
RecvAncillaryBuffer, RecvAncillaryMessage, RecvFlags, SendAncillaryBuffer,

0 commit comments

Comments
 (0)