1
0
Fork 0
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:
Robin Appelman 2021-07-18 20:16:03 +02:00
commit e901fca07a

View file

@ -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)
}
}