File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
src/devices/src/virtio/vsock/csm Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -152,21 +152,14 @@ mod tests {
152
152
) ;
153
153
154
154
assert_eq ! (
155
- format!(
156
- "{}" ,
157
- Error :: TxBufFlush ( std:: io:: Error :: from( std:: io:: ErrorKind :: Other ) )
158
- ) ,
159
- "An I/O error occurred, when attempting to flush the connection TX buffer: other os \
160
- error"
155
+ Error :: TxBufFlush ( std:: io:: Error :: from( std:: io:: ErrorKind :: Other ) ) . to_string( ) ,
156
+ "An I/O error occurred, when attempting to flush the connection TX buffer: other error"
161
157
) ;
162
158
163
159
assert_eq ! (
164
- format!(
165
- "{}" ,
166
- Error :: StreamWrite ( std:: io:: Error :: from( std:: io:: ErrorKind :: Other ) )
167
- ) ,
160
+ Error :: StreamWrite ( std:: io:: Error :: from( std:: io:: ErrorKind :: Other ) ) . to_string( ) ,
168
161
"An I/O error occurred, when attempting to write data to the host-side stream: other \
169
- os error"
162
+ error"
170
163
) ;
171
164
}
172
165
}
You can’t perform that action at this time.
0 commit comments