Erick Tryzelaar would like Owners Override to review this change.
[rust] Migrate fuchsia to std::io::Error::other
Clippy now suggests migrating from:
```
std::io::Error::new(ErrorKind::Other, ...)
```
to the shorter:
```
std::io::Error::other(...)
```
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Fuchsia-Auto-Submit | +1 |
Adding owners override, since this is a large scale rollout of a trivial cleanup
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +2 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Erick Tryzelaar removed Owners Override from reviewers of this change.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Erick Tryzelaar would like Owners Override to review this change.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Re-adding owners override for review because I missed cleaning up an import in a test.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
4 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: src/firmware/fastboot-tcp/src/fastboot.rs
Insertions: 1, Deletions: 1.
@@ -95,7 +95,7 @@
use super::*;
use crate::HANDSHAKE_MESSAGE;
use std::cmp::min;
- use std::io::{Error, ErrorKind};
+ use std::io::Error;
pub struct TestTransport {
pub data_stream: Vec<u8>,
```
```
The name of the file: src/sys/pkg/lib/fuchsia-merkle/src/tree.rs
Insertions: 1, Deletions: 1.
@@ -158,7 +158,7 @@
buf[0] = 0;
Ok(1)
} else {
- Err(io::Error::new(io::ErrorKind::Other, CUSTOM_ERROR_MESSAGE))
+ Err(io::Error::other(CUSTOM_ERROR_MESSAGE))
}
}
}
```
[rust] Migrate fuchsia to std::io::Error::other
Clippy now suggests migrating from:
```
std::io::Error::new(ErrorKind::Other, ...)
```
to the shorter:
```
std::io::Error::other(...)
```
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Change has been successfully rolled: http://go/roll-cl/caf4d48d9826125f00f552a51d45639cadb959d0
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |