Rollup merge of #129675 - lolbinarycat:bufreader_peek_unsized, r=work… · patricklam/verify-rust-std@9138bd1 (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 9138bd1
File tree
1 file changed
lines changed
1 file changed
lines changed
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -94,7 +94,9 @@ impl<R: Read> BufReader { | ||
94 | 94 | pub fn with_capacity(capacity: usize, inner: R) -> BufReader<R> { |
95 | 95 | BufReader { inner, buf: Buffer::with_capacity(capacity) } |
96 | 96 | } |
97 | +} | |
97 | 98 | |
99 | +impl<R: Read + ?Sized> BufReader<R> { | |
98 | 100 | /// Attempt to look ahead `n` bytes. |
99 | 101 | /// |
100 | 102 | /// `n` must be less than `capacity`. |