diff options
author | Bert Belder <bertbelder@gmail.com> | 2020-08-26 00:48:25 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2020-08-26 01:13:20 +0200 |
commit | aead9dc91eaa51922c8f93daa38d5d18d73e3890 (patch) | |
tree | 01df8f95e41586ce816d0c08b17c6c53d75425a1 /cli/ops/dispatch_minimal.rs | |
parent | 9bfb0df805719cb3f022a5b5d9f9d898ae954c2e (diff) |
Remove some more unnecessary 'to_string()' calls (#7190)
Diffstat (limited to 'cli/ops/dispatch_minimal.rs')
-rw-r--r-- | cli/ops/dispatch_minimal.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/ops/dispatch_minimal.rs b/cli/ops/dispatch_minimal.rs index b0dc7ad8a..20e8160ff 100644 --- a/cli/ops/dispatch_minimal.rs +++ b/cli/ops/dispatch_minimal.rs @@ -89,7 +89,7 @@ fn test_error_record() { arg: -1, error_len: 11, error_class: b"BadResource", - error_message: "Error".to_string().as_bytes().to_owned(), + error_message: b"Error".to_vec(), }; let buf: Buf = err_record.into(); assert_eq!(buf, expected.into_boxed_slice()); |