mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
clippy
This commit is contained in:
parent
7b6cff6b49
commit
322fecb7fb
1 changed files with 1 additions and 0 deletions
|
@ -390,6 +390,7 @@ impl RocStr {
|
|||
unsafe { core::slice::from_raw_parts(self.elements, self.length) }
|
||||
}
|
||||
}
|
||||
#[allow(clippy::missing_safety_doc)]
|
||||
pub unsafe fn as_str(&self) -> &str {
|
||||
let slice = self.as_slice();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue