avantgardnerio commented on code in PR #3207:
URL: https://github.com/apache/arrow-rs/pull/3207#discussion_r1042672785


##########
arrow-csv/src/reader.rs:
##########
@@ -141,7 +141,7 @@ fn infer_file_schema_with_csv_options<R: Read + Seek>(
     mut reader: R,
     roptions: ReaderOptions,
 ) -> Result<(Schema, usize), ArrowError> {
-    let saved_offset = reader.seek(SeekFrom::Current(0))?;
+    let saved_offset = reader.stream_position()?;

Review Comment:
   I built this client in our own repo where I was forced to use nightly 
clippy, which had a lot of positive things to say. I'll pull all the unrelated 
stuff back out.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to