mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 18:24:05 +02:00
remove last Rc<String> usage
This commit is contained in:
parent
67e1a3ef32
commit
e901fca07a
1 changed files with 2 additions and 3 deletions
|
|
@ -17,7 +17,6 @@ use std::convert::{TryFrom, TryInto};
|
|||
use std::fmt;
|
||||
use std::hash::Hash;
|
||||
use std::ops::BitOr;
|
||||
use std::rc::Rc;
|
||||
|
||||
#[derive(
|
||||
BitRead,
|
||||
|
|
@ -33,7 +32,7 @@ use std::rc::Rc;
|
|||
Ord,
|
||||
PartialOrd,
|
||||
)]
|
||||
pub struct SendPropName(Rc<String>);
|
||||
pub struct SendPropName(String);
|
||||
|
||||
impl SendPropName {
|
||||
pub fn as_str(&self) -> &str {
|
||||
|
|
@ -49,7 +48,7 @@ impl PartialEq<&str> for SendPropName {
|
|||
|
||||
impl From<String> for SendPropName {
|
||||
fn from(value: String) -> Self {
|
||||
Self(Rc::new(value))
|
||||
Self(value)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue