diff --git a/CHANGELOG.md b/CHANGELOG.md index c71f93a5..a535da7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ # Changelog +## v0.10.1 (Unreleased) + +- Server: Remove `Sync` trait bound for `Service::call()` future result. + ## v0.10.0 (2024-01-03) - Feature: Retrieve the `FunctionCode` of a `Request`/`Response`. diff --git a/src/server/service.rs b/src/server/service.rs index d7eb31c3..ad1609c4 100644 --- a/src/server/service.rs +++ b/src/server/service.rs @@ -1,8 +1,7 @@ // SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH // SPDX-License-Identifier: MIT OR Apache-2.0 -use std::future::Future; -use std::ops::Deref; +use std::{future::Future, ops::Deref}; /// A Modbus server service. pub trait Service { @@ -16,7 +15,7 @@ pub trait Service { type Error; /// The future response value. - type Future: Future> + Send + Sync + Unpin; + type Future: Future> + Send + Unpin; /// Process the request and return the response asynchronously. fn call(&self, req: Self::Request) -> Self::Future;