Skip to content

Commit 03c60ed

Browse files
committed
feat: implement Default trait for SipAddr struct
1 parent f113b67 commit 03c60ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rsipstack"
3-
version = "0.2.29"
3+
version = "0.2.30"
44
edition = "2021"
55
description = "SIP Stack Rust library for building SIP applications"
66
license = "MIT"

src/transport/sip_addr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ use std::{fmt, hash::Hash, net::SocketAddr};
5959
/// * `SocketAddr` (for IP addresses only)
6060
/// * `rsip::Uri` (SIP URI format)
6161
/// * `rsip::HostWithPort` (host/port only)
62-
#[derive(Debug, Eq, PartialEq, Clone)]
62+
#[derive(Debug, Eq, PartialEq, Clone, Default)]
6363
pub struct SipAddr {
6464
pub r#type: Option<rsip::transport::Transport>,
6565
pub addr: HostWithPort,

0 commit comments

Comments
 (0)