@@ -235,20 +235,20 @@ impl ZoneExt for Zone {
235235
236236 fn contains ( & self , other : & Zone ) -> bool {
237237 match ( & self . boundary , & other. boundary ) {
238- ( & Some ( ref mpoly1) , & Some ( ref mpoly2) ) => {
238+ ( Some ( mpoly1) , Some ( mpoly2) ) => {
239239 let m_self: Result < Geometry , _ > = mpoly1. try_into ( ) ;
240240 let m_other: Result < Geometry , _ > = mpoly2. try_into ( ) ;
241241
242242 match ( & m_self, & m_other) {
243- ( & Ok ( ref m_self) , & Ok ( ref m_other) ) => {
243+ ( Ok ( m_self) , Ok ( m_other) ) => {
244244 // In GEOS, "covers" is less strict than "contains".
245245 // eg: a polygon does NOT "contain" its boundary, but "covers" it.
246246 m_self. covers ( m_other)
247247 . map_err ( |e| info ! ( "impossible to compute geometries coverage for zone {:?}/{:?}: error {}" ,
248248 & self . osm_id, & other. osm_id, e) )
249249 . unwrap_or ( false )
250250 }
251- ( & Err ( ref e) , _) => {
251+ ( Err ( e) , _) => {
252252 info ! (
253253 "impossible to convert to geos for zone {:?}, error {}" ,
254254 & self . osm_id, e
@@ -259,7 +259,7 @@ impl ZoneExt for Zone {
259259 ) ;
260260 false
261261 }
262- ( _, & Err ( ref e) ) => {
262+ ( _, Err ( e) ) => {
263263 info ! (
264264 "impossible to convert to geos for zone {:?}, error {}" ,
265265 & other. osm_id, e
@@ -278,7 +278,7 @@ impl ZoneExt for Zone {
278278
279279 fn contains_center ( & self , other : & Zone ) -> bool {
280280 match ( & self . boundary , & other. center ) {
281- ( & Some ( ref mpoly1) , & Some ( ref point) ) => mpoly1. contains ( point) ,
281+ ( Some ( mpoly1) , Some ( point) ) => mpoly1. contains ( point) ,
282282 _ => false ,
283283 }
284284 }
0 commit comments