Skip to content

Commit

Permalink
Implement missing functions for 1.70.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thomcc committed Jun 1, 2023
1 parent ab37442 commit f0d96eb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ on:
branches:
- 1.67.1
- rust-1.69.0
- rust-1.70.0
pull_request:
branches:
- 1.67.1
- rust-1.69.0
- rust-1.70.0

jobs:
test_x86_84:
Expand Down Expand Up @@ -110,7 +112,7 @@ jobs:
export RUSTUP_HOME="$HOME/.rustup"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
rustup toolchain install 1.69.0
rustup toolchain install 1.70.0
cargo --version
- name: Print env
Expand Down
4 changes: 4 additions & 0 deletions library/std/src/sys/postgres/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ impl TcpStream {
self.0
}

pub fn read_buf(&self, buf: crate::io::BorrowedCursor<'_>) -> io::Result<()> {
self.0
}

pub fn read_vectored(&self, _: &mut [IoSliceMut<'_>]) -> io::Result<usize> {
self.0
}
Expand Down
4 changes: 4 additions & 0 deletions library/std/src/sys/postgres/pipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ impl AnonPipe {
unsupported()
}

pub fn read_buf(&self, buf: crate::io::BorrowedCursor<'_>) -> io::Result<()> {
unsupported()
}

pub fn is_read_vectored(&self) -> bool {
false
}
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
channel = "1.69.0"
channel = "1.70.0"
components = [ "rustfmt" ]
targets = [ ]
profile = "minimal"

0 comments on commit f0d96eb

Please sign in to comment.