From bed976257187c98db76b43b3ca02226472b82b12 Mon Sep 17 00:00:00 2001 From: Kyle Date: Wed, 8 Feb 2023 19:20:28 -0800 Subject: [PATCH] Rename source_utf8 to source_str --- src/protocol.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol.rs b/src/protocol.rs index 8d0c032..2527e57 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -198,7 +198,7 @@ pub trait SourceCode: Send + Sync { /// Borrow the source bytes as a string slice. /// Returns None if the source is not a valid utf-8 string. - fn source_utf8(&self) -> Result<&str, std::str::Utf8Error> { + fn source_str(&self) -> Result<&str, std::str::Utf8Error> { std::str::from_utf8(self.source_bytes()) } }