Rollup merge of #136844 - thaliaarchi:const-io-error, r=ChrisDenton

Use `const_error!` when possible

Replace usages of `io::Error::new(io::ErrorKind::Variant, "constant string")` with `io::const_error!(io::ErrorKind::Variant, "constant string")` to avoid allocations when possible. Additionally, fix `&&str` error messages in SGX and missing/misplaced trailing commas in `const_error!`.
This commit is contained in:
Matthias Krüger 2025-02-17 06:37:37 +01:00 committed by GitHub
commit 194f5511cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

Diff Content Not Available