diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-05-10 16:15:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-10 16:15:05 +0200 |
| commit | c5e612ce6bbdf7351cb21ee018e544297854287f (patch) | |
| tree | 66e44bde8dc62308dc8d3b01393610be017c7b6e /src/librustdoc/html/static/source-script.js | |
| parent | ae8a438034caee5c345792b7655c689324fd25c8 (diff) | |
| parent | 7ae852e349eeb83243a1d1cc4c79c8997723215e (diff) | |
| download | rust-c5e612ce6bbdf7351cb21ee018e544297854287f.tar.gz rust-c5e612ce6bbdf7351cb21ee018e544297854287f.zip | |
Rollup merge of #85146 - ijackson:seek-rewind, r=m-ou-se
Provide io::Seek::rewind Using `Seek::seek` is slightly clumsy because of the need to write (or import) `std::io::SeekFrom` to get at `SeekStart`. C already has `rewind` (although with broken error handling); we should have it too. I'm motivated to do this because I've just found myself copy-pasting my 5-line extension trait between projects. That the example ends up using `OpenOptions` makes this look like a niche use case, but it is very common to rewind temporary files. `tempfile` isn't available for use in this example or it would have looked shorter and more natural. If this gets a positive reception I will open a tracking issue and update the feature gate.
Diffstat (limited to 'src/librustdoc/html/static/source-script.js')
0 files changed, 0 insertions, 0 deletions
