]> git.proxmox.com Git - rustc.git/blobdiff - library/std/src/sys/hermit/mod.rs
New upstream version 1.60.0+dfsg1
[rustc.git] / library / std / src / sys / hermit / mod.rs
index 185b68c0a7803598107d1ac5acfdc5cd548d56d3..b798c97448b8f541aa68c19076e7736d0b6217ce 100644 (file)
@@ -58,9 +58,9 @@ pub fn unsupported<T>() -> crate::io::Result<T> {
 }
 
 pub fn unsupported_err() -> crate::io::Error {
-    crate::io::Error::new_const(
+    crate::io::const_io_error!(
         crate::io::ErrorKind::Unsupported,
-        &"operation not supported on HermitCore yet",
+        "operation not supported on HermitCore yet",
     )
 }