port over tests from previous iteration
This commit is contained in:
@@ -16,7 +16,6 @@ pub use storage::*;
|
||||
- color styling configs
|
||||
- text sanitation
|
||||
- test IME (char palette only available on macos)
|
||||
- unit tests
|
||||
*/
|
||||
|
||||
/* Open questions:
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -240,10 +240,13 @@ pub struct StringStorage {
|
||||
value: String,
|
||||
version: u16,
|
||||
}
|
||||
impl From<String> for StringStorage {
|
||||
fn from(value: String) -> Self {
|
||||
impl<S> From<S> for StringStorage
|
||||
where
|
||||
S: Into<String>,
|
||||
{
|
||||
fn from(value: S) -> Self {
|
||||
Self {
|
||||
value,
|
||||
value: value.into(),
|
||||
version: u16::default(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user