Skip to content

Commit 726f744

Browse files
Bump actions/checkout from 4 to 5 (#54)
* Bump actions/checkout from 4 to 5 Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Fix clippy lints. I just ran `cargo clippy --fix`. Signed-off-by: Andrew Walbran <qwandor@google.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Andrew Walbran <qwandor@google.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Andrew Walbran <qwandor@google.com>
1 parent dae3915 commit 726f744

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.github/workflows/bvt.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
name: BVT
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v4
8+
- uses: actions/checkout@v5
99
- name: install dependencies
1010
run: |
1111
rustup target add x86_64-unknown-linux-musl

src/lib.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,7 @@ impl VsockListener {
7777
/// Create a new VsockListener which is bound and listening on the socket address.
7878
pub fn bind(addr: &impl SockaddrLike) -> Result<Self> {
7979
if addr.family() != Some(AddressFamily::Vsock) {
80-
return Err(Error::new(
81-
ErrorKind::Other,
82-
"requires a virtio socket address",
83-
));
80+
return Err(Error::other("requires a virtio socket address"));
8481
}
8582

8683
let socket = new_socket()?;
@@ -206,10 +203,7 @@ impl VsockStream {
206203
/// Open a connection to a remote host.
207204
pub fn connect(addr: &impl SockaddrLike) -> Result<Self> {
208205
if addr.family() != Some(AddressFamily::Vsock) {
209-
return Err(Error::new(
210-
ErrorKind::Other,
211-
"requires a virtio socket address",
212-
));
206+
return Err(Error::other("requires a virtio socket address"));
213207
}
214208

215209
let socket = new_socket()?;

0 commit comments

Comments
 (0)