diff options
| author | John Turner <jturner.usa@gmail.com> | 2023-04-19 03:01:03 -0400 |
|---|---|---|
| committer | John Turner <jturner.usa@gmail.com> | 2023-04-19 03:01:03 -0400 |
| commit | 004344f765e0a7471139c44562bc38af8ca8191b (patch) | |
| tree | bebf94bf7e69e6e0e35a9ac830f2321477f60d03 | |
| parent | 4038d8be9593d556412ce9705a324785f7d9e125 (diff) | |
| download | get-004344f765e0a7471139c44562bc38af8ca8191b.tar.gz | |
reworded the error returned on invalid name value pair
| -rw-r--r-- | src/lib.rs | 2 | ||||
| -rw-r--r-- | tests/trybuild/invalid-attribute.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -171,7 +171,7 @@ mod get { then { Ok(Self::Method(s.value())) } else { - Err("invalid name value list in attribute".into()) + Err("invalid name value pair in attribute".into()) } } } diff --git a/tests/trybuild/invalid-attribute.stderr b/tests/trybuild/invalid-attribute.stderr index e408bb0..f36da71 100644 --- a/tests/trybuild/invalid-attribute.stderr +++ b/tests/trybuild/invalid-attribute.stderr @@ -20,4 +20,4 @@ error: proc-macro derive panicked 15 | #[derive(Get)] | ^^^ | - = help: message: called `Result::unwrap()` on an `Err` value: "invalid name value list in attribute" + = help: message: called `Result::unwrap()` on an `Err` value: "invalid name value pair in attribute" |
