File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ impl FastFieldReaders {
152
152
/// Returns the `ip` fast field reader reader associated to `field`.
153
153
///
154
154
/// If `field` is not a u128 fast field, this method returns an Error.
155
- pub fn ip_addr ( & self , field : Field ) -> crate :: Result < Arc < dyn Column < IpAddr > > > {
155
+ pub fn ip_addr ( & self , field : Field ) -> crate :: Result < Arc < dyn Column < Ipv6Addr > > > {
156
156
self . check_type ( field, FastType :: U128 , Cardinality :: SingleValue ) ?;
157
157
let bytes = self . fast_field_data ( field, 0 ) ?. read_bytes ( ) ?;
158
158
Ok ( open_u128 :: < IpAddr > ( bytes) ?)
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ impl Document {
99
99
}
100
100
101
101
/// Add a IP address field
102
- pub fn add_ip_addr ( & mut self , field : Field , value : IpAddr ) {
102
+ pub fn add_ip_addr ( & mut self , field : Field , value : IpAddrV6 ) {
103
103
self . add_field_value ( field, value) ;
104
104
}
105
105
You can’t perform that action at this time.
0 commit comments