By changing `as_str()` to take `&self` instead of `self`, we can just return `&str`. We're still lying about lifetimes, but it's a smaller lie than before, where `SymbolStr` contained a (fake) `&'static str`! |
||
|---|---|---|
| .. | ||
| legacy.rs | ||
| lib.rs | ||
| test.rs | ||
| v0.rs | ||
By changing `as_str()` to take `&self` instead of `self`, we can just return `&str`. We're still lying about lifetimes, but it's a smaller lie than before, where `SymbolStr` contained a (fake) `&'static str`! |
||
|---|---|---|
| .. | ||
| legacy.rs | ||
| lib.rs | ||
| test.rs | ||
| v0.rs | ||