mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-12-23 08:48:08 +00:00
reformat
This commit is contained in:
parent
257ece4d73
commit
2235939297
1 changed files with 1 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ use core::{
|
|||
/// `WS`: A string of 32 newlines followed by 128 spaces.
|
||||
pub struct SmolStr(Repr);
|
||||
|
||||
impl Clone for SmolStr{
|
||||
impl Clone for SmolStr {
|
||||
#[inline]
|
||||
fn clone(&self) -> Self {
|
||||
if !self.is_heap_allocated() {
|
||||
|
|
@ -43,7 +43,6 @@ impl Clone for SmolStr{
|
|||
}
|
||||
|
||||
impl SmolStr {
|
||||
|
||||
#[deprecated = "Use `new_inline` instead"]
|
||||
pub const fn new_inline_from_ascii(len: usize, bytes: &[u8]) -> SmolStr {
|
||||
assert!(len <= INLINE_CAP);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue