Skip to content

Commit 6b6ecb4

Browse files
author
Felix Obenhuber
committed
anng: fix MSRV issue (core vs std)
1 parent d437034 commit 6b6ecb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

anng/src/pipes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl<Protocol> Listener<'_, Protocol> {
101101
"URL length {written} exceeds NNG_MAXADDRSTRLEN"
102102
);
103103

104-
str::from_utf8(&buf[..written])
104+
std::str::from_utf8(&buf[..written])
105105
.map_err(|_| io::Error::new(io::ErrorKind::InvalidData, "URL is not valid UTF-8"))?
106106
.to_string()
107107
};

0 commit comments

Comments
 (0)