about summary refs log tree commit diff
path: root/library/std/src/sys/unsupported/common.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/src/sys/unsupported/common.rs')
-rw-r--r--library/std/src/sys/unsupported/common.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/unsupported/common.rs b/library/std/src/sys/unsupported/common.rs
index a06b44e96a9..5274f53a7db 100644
--- a/library/std/src/sys/unsupported/common.rs
+++ b/library/std/src/sys/unsupported/common.rs
@@ -21,9 +21,9 @@ pub fn unsupported<T>() -> std_io::Result<T> {
 }
 
 pub fn unsupported_err() -> std_io::Error {
-    std_io::Error::new_const(
+    std_io::const_io_error!(
         std_io::ErrorKind::Unsupported,
-        &"operation not supported on this platform",
+        "operation not supported on this platform",
     )
 }