We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d137488 commit 999dcfeCopy full SHA for 999dcfe
mp4parse_capi/src/lib.rs
@@ -442,19 +442,15 @@ pub struct Mp4parseIo {
442
impl Read for Mp4parseIo {
443
fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> {
444
if buf.len() > isize::MAX as usize {
445
- return Err(std::io::Error::new(
446
- std::io::ErrorKind::Other,
+ return Err(std::io::Error::other(
447
"buf length overflow in Mp4parseIo Read impl",
448
));
449
}
450
let rv = self.read.unwrap()(buf.as_mut_ptr(), buf.len(), self.userdata);
451
if rv >= 0 {
452
Ok(rv as usize)
453
} else {
454
- Err(std::io::Error::new(
455
456
- "I/O error in Mp4parseIo Read impl",
457
- ))
+ Err(std::io::Error::other("I/O error in Mp4parseIo Read impl"))
458
459
460
0 commit comments