File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33All notable changes to this project will be documented in this file.
44
5+ ## [ 0.2.1] - 2024-04-10
6+
7+ ### 🚜 Refactor
8+
9+ - Parameter constructor
10+
11+ ### 📚 Documentation
12+
13+ - Update documentation
14+
515## [ 0.2.0] - 2024-04-10
616
717### 🚀 Features
Original file line number Diff line number Diff line change 11[package ]
22name = " public-ip-address"
3- version = " 0.2.0 "
3+ version = " 0.2.1 "
44edition = " 2021"
55authors = [" Tomash Ghz <ghz.tomash@hotmail.com>" ]
66description = " A simple library for performing public IP and geolocation lookups from various services."
Original file line number Diff line number Diff line change @@ -192,10 +192,7 @@ impl LookupProvider {
192192 . ok_or ( LookupError :: GenericError ( "No provider given" . to_string ( ) ) ) ?;
193193 let provider = p. parse :: < LookupProvider > ( ) ?;
194194 // get the key if it exists
195- let key = match s. get ( 1 ) {
196- Some ( key) => Some ( Parameters :: new ( key. to_owned ( ) ) ) ,
197- None => None ,
198- } ;
195+ let key = s. get ( 1 ) . map ( |key| Parameters :: new ( key. to_owned ( ) ) ) ;
199196 Ok ( ( provider, key) )
200197 }
201198}
You can’t perform that action at this time.
0 commit comments