diff options
Diffstat (limited to 'azalea-buf/src/lib.rs')
| -rw-r--r-- | azalea-buf/src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/azalea-buf/src/lib.rs b/azalea-buf/src/lib.rs index ef3bd3a8..966b1372 100644 --- a/azalea-buf/src/lib.rs +++ b/azalea-buf/src/lib.rs @@ -161,7 +161,7 @@ mod tests { #[test] fn test_list() { - let original_vec = vec!["a".to_string(), "bc".to_string(), "def".to_string()]; + let original_vec = vec!["a".to_owned(), "bc".to_owned(), "def".to_owned()]; let mut buf = Vec::new(); original_vec.azalea_write(&mut buf).unwrap(); @@ -184,9 +184,9 @@ mod tests { #[test] fn test_map() { let original_map = HashMap::from([ - ("a".to_string(), 1), - ("bc".to_string(), 23), - ("def".to_string(), 456), + ("a".to_owned(), 1), + ("bc".to_owned(), 23), + ("def".to_owned(), 456), ]); let mut buf = Vec::new(); original_map.azalea_write_var(&mut buf).unwrap(); |
