File tree Expand file tree Collapse file tree 6 files changed +8
-2
lines changed
Expand file tree Collapse file tree 6 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 8888 toolchain : stable
8989 components : clippy
9090 - name : Run clippy
91- run : cargo clippy --all-features -- -A warnings
91+ run : cargo clippy --all-features
9292
9393 build :
9494 needs : setup
Original file line number Diff line number Diff line change 11[package ]
22name = " udp"
3- version = " 2.0.3 "
3+ version = " 2.0.4 "
44readme = " README.md"
55edition = " 2024"
66authors = [" root@ltpp.vip" ]
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ impl Default for ServerConfig {
77 /// # Returns
88 ///
99 /// - `ServerConfig` - New config with default values.
10+ #[ inline( always) ]
1011 fn default ( ) -> Self {
1112 Self {
1213 host : DEFAULT_HOST . to_owned ( ) ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ use crate::*;
22
33/// Implementation of InnerContext methods.
44impl Default for InnerContext {
5+ #[ inline( always) ]
56 fn default ( ) -> Self {
67 Self :: new ( )
78 }
@@ -13,6 +14,7 @@ impl InnerContext {
1314 /// # Returns
1415 ///
1516 /// - `InnerContext` - New context instance.
17+ #[ inline( always) ]
1618 pub fn new ( ) -> Self {
1719 InnerContext {
1820 socket : None ,
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ impl Default for Response {
77 /// # Returns
88 ///
99 /// - `Response` - New response with empty data.
10+ #[ inline( always) ]
1011 fn default ( ) -> Self {
1112 Self ( Vec :: new ( ) )
1213 }
@@ -25,6 +26,7 @@ impl Response {
2526 /// # Returns
2627 ///
2728 /// - `Response` - New response containing the data.
29+ #[ inline( always) ]
2830 pub fn from < T : Into < ResponseData > > ( data : T ) -> Self {
2931 Self ( data. into ( ) )
3032 }
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ impl Default for Server {
77 /// # Returns
88 ///
99 /// - `Server` - New server instance with default values.
10+ #[ inline( always) ]
1011 fn default ( ) -> Self {
1112 Self {
1213 config : Arc :: new ( RwLock :: new ( ServerConfig :: default ( ) ) ) ,
You can’t perform that action at this time.
0 commit comments