<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/io/util, branch auto</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=auto</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=auto'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-03-10T08:38:20+00:00</updated>
<entry>
<title>Implement default methods for io::Empty and io::Sink</title>
<updated>2025-03-10T08:38:20+00:00</updated>
<author>
<name>Thalia Archibald</name>
<email>thalia@archibald.dev</email>
</author>
<published>2025-02-14T21:40:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=523b9d942890f331fcee5d2d26e7cecfb59c6ec8'/>
<id>urn:sha1:523b9d942890f331fcee5d2d26e7cecfb59c6ec8</id>
<content type='text'>
Eliminate any redundant, unobservable logic from the their default
method implementations.

The observable changes are that `Write::write_fmt` for both types now
ignores the formatting arguments, so a user fmt impl which has side
effects is not invoked, and `Write::write_all_vectored` for both types
does not advance the borrowed buffers. Neither behavior is guaranteed by
the docs and the latter is documented as unspecified.

`Empty` is not marked as vectored, so that `Chain&lt;Empty, _&gt;` and
`Chain&lt;_, Empty&gt;` are not forced to be vectored.
</content>
</entry>
<entry>
<title>Reformat using the new identifier sorting from rustfmt</title>
<updated>2024-09-22T23:11:29+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-09-22T23:05:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c682aa162b0d41e21cc6748f4fecfe01efb69d1f'/>
<id>urn:sha1:c682aa162b0d41e21cc6748f4fecfe01efb69d1f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reformat `use` declarations.</title>
<updated>2024-07-28T22:26:52+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-07-28T22:13:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=84ac80f1921afc243d71fd0caaa4f2838c294102'/>
<id>urn:sha1:84ac80f1921afc243d71fd0caaa4f2838c294102</id>
<content type='text'>
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
</content>
</entry>
<entry>
<title>Rollup merge of #98154 - vidhanio:master, r=workingjubilee</title>
<updated>2023-07-30T18:36:33+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2023-07-30T18:36:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=27e3a740ae28ed0d8ad27b617337cf4bfc6291d2'/>
<id>urn:sha1:27e3a740ae28ed0d8ad27b617337cf4bfc6291d2</id>
<content type='text'>
merge functionality of `io::Sink` into `io::Empty`

Many times, there is a need for a simple dummy `io::Read`er + `io::Write`r, but currently the only options are `io::Empty` and `io::Sink` respectively. Having both of their functionality together requires writing your own boilerplate for something that makes sense to have in the standard library. This PR adds the functionality of `io::Sink` to `io::Empty`, making `io::Empty` be able to perform the tasks of both of the previous structs. (This idea was first mentioned in #24235)

Note: I also updated some doc comments in `io::utils` in this pull request to fix inconsistencies between `io::Sink` and `io::Empty`.

API Change Proposal: https://github.com/rust-lang/libs-team/issues/49
</content>
</entry>
<entry>
<title>Extend io::copy buffer reuse to BufReader too</title>
<updated>2023-06-17T09:07:04+00:00</updated>
<author>
<name>The 8472</name>
<email>git@infinite-source.de</email>
</author>
<published>2023-06-05T23:09:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=373878573569371be876bb838607c64076f17f49'/>
<id>urn:sha1:373878573569371be876bb838607c64076f17f49</id>
<content type='text'>
previously it was only able to use BufWriter. This was due to a limitation in the
BufReader generics that prevented specialization. This change works around the issue
by using `where Self: Read` instead of `where I: Read`. This limits our options, e.g.
we can't access BufRead methods, but it happens to work out if we rely on some
implementation details.
</content>
</entry>
<entry>
<title>feat: merge functionality of `io::Sink` into `io::Empty`</title>
<updated>2023-05-05T13:32:33+00:00</updated>
<author>
<name>Vidhan Bhatt</name>
<email>me@vidhan.io</email>
</author>
<published>2023-05-05T13:32:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=79a22f4954704d65f8356be59c3d07851e31f074'/>
<id>urn:sha1:79a22f4954704d65f8356be59c3d07851e31f074</id>
<content type='text'>
</content>
</entry>
<entry>
<title>non-linux platforms</title>
<updated>2022-08-05T16:18:51+00:00</updated>
<author>
<name>Nick Cameron</name>
<email>nrc@ncameron.org</email>
</author>
<published>2022-06-07T07:43:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1a2122fff015d1d7fb31fe3a55e49027d67d79af'/>
<id>urn:sha1:1a2122fff015d1d7fb31fe3a55e49027d67d79af</id>
<content type='text'>
Signed-off-by: Nick Cameron &lt;nrc@ncameron.org&gt;
</content>
</entry>
<entry>
<title>std::io: migrate ReadBuf to BorrowBuf/BorrowCursor</title>
<updated>2022-08-04T14:29:32+00:00</updated>
<author>
<name>Nick Cameron</name>
<email>nrc@ncameron.org</email>
</author>
<published>2022-05-13T14:06:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c1aae4d27902aaaa0d8e7d1a76d030b4fc90f329'/>
<id>urn:sha1:c1aae4d27902aaaa0d8e7d1a76d030b4fc90f329</id>
<content type='text'>
Signed-off-by: Nick Cameron &lt;nrc@ncameron.org&gt;
</content>
</entry>
<entry>
<title>read_buf</title>
<updated>2021-11-03T05:47:20+00:00</updated>
<author>
<name>DrMeepster</name>
<email>19316085+DrMeepster@users.noreply.github.com</email>
</author>
<published>2021-01-18T06:28:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=98c6200b1615e6a40fd63984f81bd55d589b42a5'/>
<id>urn:sha1:98c6200b1615e6a40fd63984f81bd55d589b42a5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>specialize io::copy to use the memory of the writer if it is a BufWriter</title>
<updated>2021-01-31T13:58:03+00:00</updated>
<author>
<name>The8472</name>
<email>git@infinite-source.de</email>
</author>
<published>2020-11-01T18:59:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=410550665601a8abe8935f7b55d5732fe4c4224f'/>
<id>urn:sha1:410550665601a8abe8935f7b55d5732fe4c4224f</id>
<content type='text'>
</content>
</entry>
</feed>
