Skip to content

Commit

Permalink
Drop lifetime parameter of WktReader (#157)
Browse files Browse the repository at this point in the history
&'a mut R implements Read if R does so
  • Loading branch information
pka authored Aug 12, 2023
1 parent a92ef80 commit e1964f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geozero/src/wkt/wkt_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ pub struct EwktString(pub String);
pub struct EwktStr<'a>(pub &'a str);

/// Wkt Reader.
pub struct WktReader<'a, R: Read>(pub &'a mut R);
pub struct WktReader<R: Read>(pub R);

impl<'a, R: Read> GeozeroDatasource for WktReader<'a, R> {
impl<R: Read> GeozeroDatasource for WktReader<R> {
fn process<P: FeatureProcessor>(&mut self, processor: &mut P) -> Result<()> {
read_wkt(&mut self.0, processor)
}
Expand Down

0 comments on commit e1964f3

Please sign in to comment.