diff options
author | Teddy Wing | 2017-11-12 20:16:54 +0100 |
---|---|---|
committer | Teddy Wing | 2017-11-12 20:16:54 +0100 |
commit | b06e3fe2f1bcf7fa897648ab79e301ccab256ac8 (patch) | |
tree | 2c890e557c7b09dc841dc59cda5f5a1a2f3cc1ba /src/af83.rs | |
parent | 98ff2f8a24f0d32043b4de9b5671a4d882a6e903 (diff) | |
download | kipper-b06e3fe2f1bcf7fa897648ab79e301ccab256ac8.tar.bz2 |
Convert a bunch of `to_string()`s to `to_owned()`
I had used `to_owned()` previously in other projects, but after looking
up the difference (again probably), I decided that it seems better to
use `to_owned()`.
References:
https://users.rust-lang.org/t/to-string-vs-to-owned-for-string-literals/1441/6
http://www.lowlevelmanager.com/2016/02/rust-tostring-vs-toowned-for-string.html
Diffstat (limited to 'src/af83.rs')
-rw-r--r-- | src/af83.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/af83.rs b/src/af83.rs index 5a56c36..236574f 100644 --- a/src/af83.rs +++ b/src/af83.rs @@ -14,10 +14,10 @@ mod tests { #[test] fn job_name_is_branch_appended_by_commit_sha_prefix() { let commit_ref = CommitRef { - owner: "sybil".to_string(), - repo: "sybil-system".to_string(), - sha: "159f8769b897ed7774700d0b2777def8ac838b8f".to_string(), - branch: "5912-make-logo-bigger".to_string(), + owner: "sybil".to_owned(), + repo: "sybil-system".to_owned(), + sha: "159f8769b897ed7774700d0b2777def8ac838b8f".to_owned(), + branch: "5912-make-logo-bigger".to_owned(), }; assert_eq!( |