summaryrefslogtreecommitdiffstats
path: root/src/task.rs
diff options
context:
space:
mode:
authorMalte Brandy <malte.brandy@maralorn.de>2018-04-19 15:05:40 +0200
committerGitHub <noreply@github.com>2018-04-19 15:05:40 +0200
commit4bb15f6ce0932d3c0dc244ec28b0444cdfd72d48 (patch)
tree2d83bd066496f587789cd334a52167ecb6b68fd1 /src/task.rs
parentab6251088621cd9af021fb2cbc48e2f1a95e0b13 (diff)
parentf9b5daad44aee09906e45f2ebe0e5b7b327ccd6c (diff)
Merge pull request #63 from maralorn/simpler-uda
Simplify the types for UDAs
Diffstat (limited to 'src/task.rs')
-rw-r--r--src/task.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/task.rs b/src/task.rs
index 96ce165..6e6c6c5 100644
--- a/src/task.rs
+++ b/src/task.rs
@@ -811,17 +811,17 @@ mod test {
assert!(task.is_ok());
let task: Task = task.unwrap();
- let str_uda = task.uda().get(&"test_str_uda".into());
+ let str_uda = task.uda().get(&"test_str_uda".to_owned());
assert!(str_uda.is_some());
let str_uda = str_uda.unwrap();
assert_eq!(str_uda, &UDAValue::Str("test_str_uda_value".to_owned()));
- let float_uda = task.uda().get(&"test_float_uda".into());
+ let float_uda = task.uda().get(&"test_float_uda".to_owned());
assert!(float_uda.is_some());
let float_uda = float_uda.unwrap();
assert_eq!(float_uda, &UDAValue::F64(-17.1234));
- let int_uda = task.uda().get(&"test_int_uda".into());
+ let int_uda = task.uda().get(&"test_int_uda".to_owned());
assert!(int_uda.is_some());
let int_uda = int_uda.unwrap();
assert_eq!(int_uda, &UDAValue::U64(1234));