Skip to content

Commit de905a2

Browse files
committed
Updated dependencies.
1 parent 80c0289 commit de905a2

File tree

6 files changed

+16
-11
lines changed

6 files changed

+16
-11
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
44

5+
## [1.0.14] - 2025-08-09
6+
7+
### Changed
8+
9+
- Updated dependencies.
10+
511
## [1.0.13] - 2025-02-21
612

713
### Changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "process_vm_io"
3-
version = "1.0.13" # Remember to update `html_root_url` and `dependency status` link.
3+
version = "1.0.14" # Remember to update `html_root_url` and `dependency status` link.
44
description = "I/O access to virtual memory contents of processes"
55
authors = [
66
"Koutheir Attouchi <[email protected]>"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![crates.io](https://img.shields.io/crates/v/process_vm_io.svg)](https://crates.io/crates/process_vm_io)
22
[![docs.rs](https://docs.rs/process_vm_io/badge.svg)](https://docs.rs/process_vm_io)
33
[![license](https://img.shields.io/github/license/mdcssw/process_vm_io?color=black)](https://raw.githubusercontent.com/mdcssw/process_vm_io/master/LICENSE.txt)
4-
[![dependency status](https://deps.rs/crate/process_vm_io/1.0.13/status.svg)](https://deps.rs/crate/process_vm_io/1.0.13)
4+
[![dependency status](https://deps.rs/crate/process_vm_io/1.0.14/status.svg)](https://deps.rs/crate/process_vm_io/1.0.14)
55

66
# I/O access to virtual memory contents of processes
77

src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ impl Error {
175175
#[must_use]
176176
pub fn os_error_code(&self) -> Option<c_int> {
177177
match &self.0.kind {
178-
ErrorKind::TooManyVMPages { .. }
178+
ErrorKind::TooManyVMPages
179179
| ErrorKind::UnknownPageSize
180180
| ErrorKind::InvalidPageSize(_)
181181
| ErrorKind::IntegerCast { .. } => None,

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// TODO: https://rust-lang.github.io/api-guidelines/checklist.html
88

99
#![doc = include_str!("../README.md")]
10-
#![doc(html_root_url = "https://docs.rs/process_vm_io/1.0.13")]
10+
#![doc(html_root_url = "https://docs.rs/process_vm_io/1.0.14")]
1111
#![warn(
1212
unsafe_op_in_unsafe_fn,
1313
missing_docs,
@@ -435,7 +435,7 @@ impl Read for ProcessVirtualMemoryIO {
435435
&[local_io_vector],
436436
buf.len() as u64,
437437
)
438-
.map_err(|err| io::Error::new(io::ErrorKind::Other, err))
438+
.map_err(io::Error::other)
439439
}
440440

441441
fn read_vectored(&mut self, bufs: &mut [IoSliceMut]) -> io::Result<usize> {
@@ -447,7 +447,7 @@ impl Read for ProcessVirtualMemoryIO {
447447
local_io_vectors,
448448
byte_count,
449449
)
450-
.map_err(|err| io::Error::new(io::ErrorKind::Other, err))
450+
.map_err(io::Error::other)
451451
}
452452
}
453453

@@ -464,7 +464,7 @@ impl Write for ProcessVirtualMemoryIO {
464464
&[local_io_vector],
465465
buf.len() as u64,
466466
)
467-
.map_err(|err| io::Error::new(io::ErrorKind::Other, err))
467+
.map_err(io::Error::other)
468468
}
469469

470470
fn write_vectored(&mut self, bufs: &[IoSlice]) -> io::Result<usize> {
@@ -476,7 +476,7 @@ impl Write for ProcessVirtualMemoryIO {
476476
local_io_vectors,
477477
byte_count,
478478
)
479-
.map_err(|err| io::Error::new(io::ErrorKind::Other, err))
479+
.map_err(io::Error::other)
480480
}
481481

482482
fn flush(&mut self) -> io::Result<()> {

src/utils.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,10 @@ fn get_min_system_page_size() -> Result<NonZero<u64>> {
5454
r => r as u64,
5555
};
5656

57-
if let Some(value) = NonZero::new(value) {
58-
if value.is_power_of_two() {
57+
if let Some(value) = NonZero::new(value)
58+
&& value.is_power_of_two() {
5959
return Ok(value);
6060
}
61-
}
6261

6362
Err(Error::from(ErrorKind::InvalidPageSize(value)))
6463
}

0 commit comments

Comments
 (0)