Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/bvt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
name: BVT
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: install dependencies
run: |
rustup target add x86_64-unknown-linux-musl
Expand Down
10 changes: 2 additions & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ impl VsockListener {
/// Create a new VsockListener which is bound and listening on the socket address.
pub fn bind(addr: &impl SockaddrLike) -> Result<Self> {
if addr.family() != Some(AddressFamily::Vsock) {
return Err(Error::new(
ErrorKind::Other,
"requires a virtio socket address",
));
return Err(Error::other("requires a virtio socket address"));
}

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

let socket = new_socket()?;
Expand Down