Skip to content

Commit 74f4cb0

Browse files
committed
refactor: [#670] added error message for pint_response function
1 parent 08e87ca commit 74f4cb0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/console/clients/udp/responses.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ use aquatic_udp_protocol::{AnnounceResponse, ConnectResponse, ErrorResponse, Ipv
77
use serde::Serialize;
88

99
pub trait DtoToJson {
10+
/// # Errors
11+
///
12+
/// Will return an error if serialization fails.
13+
///
1014
fn print_response(&self) -> anyhow::Result<()>
1115
where
1216
Self: Serialize,

0 commit comments

Comments
 (0)