Commit Graph

558 Commits

Author SHA1 Message Date
Oliver Schneider
cec1857cfb Merge pull request #368 from twify93/patch-1
README - add additional info about untyped Example - closes #367
2017-10-13 13:56:38 +02:00
Lachezar Lechev
732c4702ba README - add additional info about untyped Example 2017-10-12 12:11:41 +02:00
David Tolnay
efad89d59a Comma outside of array or object is not necessarily trailing
This code catches things like `[1, 2], 3` where the `, 3` are trailing
characters but the comma is not a trailing comma. Trailing comma is like
the commas in `[1,]` or `{"f":2,}`.
2017-09-24 23:41:15 -07:00
David Tolnay
2a91a88581 Update ui test failure message 2017-09-23 12:23:58 -07:00
David Tolnay
adade3344a Merge pull request #353 from fmoor/feature/trailing_comma
change error type for trailing commas, fixes #352
2017-09-09 13:15:54 -07:00
David Tolnay
6ec3ae1077 Remove commented code from PR 2017-09-09 13:05:40 -07:00
fmoor
1b02cfec24 add ErrorCode::TrailingComma 2017-09-05 17:25:17 -07:00
fmoor
4afb61cc02 change error type for trailing commas, fixes #352 2017-09-05 17:25:17 -07:00
David Tolnay
764e9607cf Release 1.0.3 v1.0.3 2017-09-04 13:42:48 -07:00
David Tolnay
8e01f44f47 Merge pull request #356 from serde-rs/ignore
Optimize deserialize_ignored_any
2017-09-04 13:41:24 -07:00
David Tolnay
79db7d4fe7 Optimize deserialize_ignored_any 2017-09-04 13:26:50 -07:00
David Tolnay
b67a9470c5 Remove unused extern crate core 2017-09-04 12:02:55 -07:00
David Tolnay
fd96650377 Ignore cast_lossless lint 2017-09-01 21:47:38 -07:00
David Tolnay
70dd4be9db Ignore clippy's use_self lint 2017-08-24 00:25:54 -07:00
David Tolnay
66b37bd0dd Replace deprecated compiletest::default_config() 2017-08-24 00:23:16 -07:00
David Tolnay
1aa61215b2 Update ui error message 2017-07-20 23:26:29 -07:00
David Tolnay
eb6067fbcd Merge pull request #338 from foriequal0/master
Implement PartialEq for bool
2017-07-13 22:10:40 -07:00
SeongChan Lee
7fbf18e95e Implement PartialEq<bool> for Value 2017-07-13 04:12:38 +09:00
David Tolnay
58a7642d09 Update ui error message 2017-07-09 10:03:02 -07:00
David Tolnay
117cf7ade6 Test rust 1.15.0 2017-06-12 20:09:26 -07:00
David Tolnay
aca0df4ba7 Refresh the ui tests 2017-06-12 20:09:09 -07:00
David Tolnay
44b82efd4f Merge pull request #332 from erickt/master
Switch to using char::encode_utf8
2017-06-12 19:56:22 -07:00
Erick Tryzelaar
dea388114f Switch to using char::encode_utf8
Now that Rust 1.18 has come out, and according to our policy of supporting
the past 3 versions of rust, we can finally switch to using
`char::encode_utf8` to encode a character into a string.

Closes #270.
2017-06-10 12:24:56 -07:00
David Tolnay
26c226750c Exclude macros file from being tested by itself 2017-05-27 11:34:47 -07:00
David Tolnay
edf129130e New error message in UI tests 2017-05-27 11:29:02 -07:00
David Tolnay
623b0e6a14 Merge pull request #322 from GyrosOfWar/master
Better invalid type error message
2017-05-25 00:55:01 -07:00
Martin Tomasi
38e5b8f314 Fixed error in tests 2017-05-25 09:43:09 +02:00
Martin Tomasi
046b6e0968 Better invalid type error message (addresses issue #319) 2017-05-21 17:32:34 +02:00
David Tolnay
c243fd8234 Update ui/parse_expr for latest nightly 2017-05-09 15:11:39 -07:00
David Tolnay
0e02332ec6 Link to benchmarks from readme
Fixes #82.
2017-05-08 16:56:14 -07:00
David Tolnay
4e33d77b71 Release 1.0.2 v1.0.2 2017-05-08 16:11:11 -07:00
David Tolnay
40767683b1 Take credit 2017-05-08 16:11:03 -07:00
David Tolnay
dc85d44a94 Merge pull request #314 from Rufflewind/t313
Reduce visitor-dependence in number parsers
2017-05-08 16:07:57 -07:00
Phil Ruffwind
2b68532e9d Fully factor out visitor dependence in number parser
This requires making an enum (Number) to hold the three possible types
of visiting arguments.
2017-05-03 05:16:05 -04:00
Phil Ruffwind
476e753db8 Reduce visitor-dependence in number parsers
All these functions end up calling visit_f64 so rewriting these
functions to avoid dependence on the visitor type V is a no-brainer:

  - parse_long_integer
  - parse_decimal
  - parse_exponent
  - parse_exponent_overflow
  - visit_f64_from_parts
2017-05-03 02:23:41 -04:00
David Tolnay
8202c68c0a Release 1.0.1 v1.0.1 2017-04-27 17:10:58 -07:00
David Tolnay
6b17c363b9 No need for pub use in private module 2017-04-27 17:09:18 -07:00
David Tolnay
5df9d32be8 Add license info to value files 2017-04-27 17:02:21 -07:00
David Tolnay
1d445facde Index got lost in the grand value division 2017-04-27 16:42:24 -07:00
David Tolnay
9bf6f16425 Merge pull request #311 from serde-rs/int
Allow integers to be used as map keys again
2017-04-27 16:27:25 -07:00
David Tolnay
9231ffd19e Add test for borrowed map key 2017-04-27 15:49:22 -07:00
David Tolnay
4cc9d87832 Treat non-integer key as a type error 2017-04-27 15:49:09 -07:00
David Tolnay
83e3ec0a45 Allow integers to be used as map keys again 2017-04-27 12:56:43 -07:00
David Tolnay
8e48fa0fb2 Remove an unreachable branch 2017-04-25 11:36:37 -07:00
David Tolnay
d78575d6c6 Merge pull request #306 from serde-rs/entry
Use the new linked-hash-map entry API
2017-04-21 15:39:52 -07:00
David Tolnay
c5cd928ddc Use the new linked-hash-map entry API 2017-04-21 15:27:00 -07:00
David Tolnay
b46f43c4b9 Merge pull request #307 from killercup/feature/split-value-into-pieces
Split value into pieces
2017-04-21 13:24:46 -07:00
Pascal Hertleif
085af20882 Grand value division: value::de 2017-04-21 21:50:08 +02:00
Pascal Hertleif
af55b82f26 Grand value division: value::ser 2017-04-21 21:50:07 +02:00
Pascal Hertleif
3c439cfb52 Grand value division: value::from 2017-04-21 21:50:05 +02:00