Commit Graph

627 Commits (master)

Author SHA1 Message Date
est31 6bbafa4489 Suppport deserialization of Spanned<> at the top level (#328) 2019-09-05 08:38:54 -05:00
Erich Gubler b2a427ee7d Make `de::Error` `Eq` in addition to current `PartialEq` (#330)
Not sure why this wasn't implemented before, since `ser::Error` has implemented `PartialEq` and `Eq` as of PR #144.
2019-09-04 18:44:32 -05:00
Alex Crichton be450b70d0 Work around a rustfmt bug 2019-08-28 08:02:08 -07:00
Alex Crichton ae63d325d2 wut 2019-08-28 08:01:07 -07:00
Alex Crichton 322412864b More rustfmt 2019-08-28 07:59:44 -07:00
Alex Crichton 4e4340c5bf Remove outdated README badges 2019-08-28 07:59:20 -07:00
Alex Crichton 5457ef4ee7 Run rustfmt 2019-08-28 07:58:15 -07:00
Alex Crichton 677ccfa940 Switch to github actions for CI 2019-08-28 07:57:58 -07:00
Eric Huss 994b0e2fcb Allow zero-prefixed float exponents. (#322) 2019-08-23 09:55:15 -07:00
Alex Crichton 4951dc400c
Merge pull request #321 from NickHackman/fix-clippy-warnings-and-errors
Fix clippy warnings and errors
2019-08-20 14:51:26 -05:00
Nick Hackman 022e914ccf Propogate write! errors to ser::Error
std::fmt::Errors are now converted to ser::Errors via ser::Error::custom
2019-08-20 12:59:28 -04:00
Nick Hackman d55ec1b4c1 Fixed Clippy warning of long return type
Created an alias named TablePair being a (Cow<'a, str>, Value<'a>)
2019-08-18 21:07:23 -04:00
Nick Hackman b7d26c8a05 Potential Solution to drop clippy errors
Calling the write!, the result that it returns doesn't matter or wasn't
deemed as important and was dropped before. This was just removed and
then the unused Result is ignored via clippy attribute. This is a
plausible solution to get past the Clippy Error, but others may be more
ideal.
2019-08-18 20:23:40 -04:00
Nick Hackman 2bf0931b84 Removed all warnings besides two
Majority of warnings removed via RustFix
Two remain one being a long return type and another being a name
suggestion from Clippy `to_owned` for MaybeString
2019-08-14 23:05:30 -04:00
Eric Huss 8f4372873e Bump to 0.5.3 2019-08-13 14:53:04 -07:00
Eric Huss 801188700f
Merge pull request #320 from ehuss/crlf-error-index
Fix error line/column when using CRLF line endings.
2019-08-13 14:51:03 -07:00
Eric Huss f4dd4a2438 Fix error line/column when using CRLF line endings. 2019-08-13 13:48:54 -07:00
Alex Crichton d03b251af5
Merge pull request #319 from NickHackman/modernize-enum-discriminant-comparison
Simplified Logic when comparing discriminants
2019-08-13 14:36:26 -05:00
Nick Hackman f883457334 Simplified Logic when comparing discriminants
Removed matches that were used to compare Enum variants for equality in
favor of using discriminant from https://doc.rust-lang.org/std/mem/fn.discriminant.html
introduced in Rust 1.21.0
2019-08-13 14:13:01 -04:00
Alex Crichton 208f4a9ce9 Bump to 0.5.2 2019-08-13 07:55:09 -07:00
Alex Crichton 39d720d84c
Merge pull request #318 from JustAPerson/patch-1
Derive Clone+PartialEq for Spanned
2019-08-13 09:38:25 -05:00
Jason Priest bbff1080f9
Derive Clone+PartialEq for Spanned
Should any other traits be derived?
2019-08-12 21:27:26 -05:00
Alex Crichton e0bf3a087a Run `cargo fmt` 2019-08-12 13:50:59 -07:00
Alex Crichton 81cfc602b8 Fix a bad merge 2019-08-12 13:50:44 -07:00
Alex Crichton c3a89a690a
Merge pull request #315 from jwdeitch/master
Allow conversion from de::Error to std::io::error
2019-08-12 15:35:55 -05:00
Alex Crichton 72881c2a06
Merge pull request #314 from zertosh/add-line-and-col-to-errors
Add line and column to all Errors
2019-08-12 15:35:35 -05:00
Alex Crichton fa9740540f
Merge pull request #317 from ehuss/outlives-requirements
Squelch explicit_outlives_requirements warning.
2019-08-12 12:05:22 -05:00
Eric Huss 79d03bf0df Squelch explicit_outlives_requirements warning. 2019-08-12 09:12:39 -07:00
Alex Crichton f56df234c0
Merge pull request #316 from pietroalbini/doc-spanned
Include Spanned in the docs
2019-08-09 16:53:38 -05:00
Pietro Albini b1aa4f7129
include Spanned in the docs
The `Spanned` struct was originally included in the docs as a re-export,
but rustdoc doesn't render re-exports if the module from which it's
exported isn't documented.

Since `Spanned` is the only public item inside the `spanned` module this
commit shows the struct as a normal item in the index, and moves the
example from the module docs to the struct docs.
2019-08-09 20:48:46 +02:00
Jordan Deitch 27a2f490b3
convert toml error to std::io error 2019-08-01 20:43:05 -04:00
Andres Suarez 144e1d0f90 Add line and column to all Errors 2019-07-30 13:35:08 -04:00
Andres Suarez 59aa7214f0 Add tests covering custom deserializers 2019-07-30 13:16:59 -04:00
Alex Crichton 5c6c375072
Merge pull request #313 from zertosh/show-col-in-errors
Show "column" in Error messages
2019-07-29 09:06:35 -05:00
Andres Suarez 3d08775266 Show "column" in Error messages 2019-07-28 13:41:17 -04:00
Andres Suarez 2a9df8afb9 Fully expand error messages in tests 2019-07-28 12:58:26 -04:00
Eric Huss 844a1a4651
Merge pull request #311 from Aaron1011/feature/update-serde
Bump Serde dependency to 1.0.97
2019-07-27 18:33:42 -07:00
Aaron Hill 381d020563
Bump Serde dependency to 1.0.97
toml-rs depends on some Serde types not present in Serde 1.0.0 (e.g
BorrowedStrDeserializer). By explicitly depending on a newever version,
we ensure compatibility with any crates using '-Z minimal-versions'

Note that we could probably depend on an older version of Serde, but I
didn't see much point in finding the exact minimum patch release that's
compatible with toml-rs
2019-07-27 20:43:58 -04:00
Alex Crichton 63a3354007 Bump to 0.5.1 2019-05-16 13:10:01 -07:00
Alex Crichton e887edc70f
Merge pull request #308 from ehuss/edition-2018
Migrate to 2018 edition
2019-05-09 06:49:11 -07:00
Alex Crichton 320464be3b
Merge pull request #307 from ehuss/remove-conditional-rustc
Remove rustc version checking.
2019-05-09 06:47:06 -07:00
Eric Huss 0fca4dd2d3 cargo fmt 2019-05-08 17:45:39 -07:00
Eric Huss 4ad7eebf9e Remove rustc version checking.
This is no longer necessary, as <1.20 is no longer supported.
2019-05-08 17:39:18 -07:00
Eric Huss 6c162e6562 2018 edition idioms. 2019-05-08 17:37:38 -07:00
Eric Huss 1b01658913 Migrate to 2018 edition. 2019-05-08 12:12:14 -07:00
Eric Huss d038a0bc56
Merge pull request #305 from ehuss/0.5-version
Bump html_root_url version.
2019-04-25 11:22:29 -07:00
Eric Huss ef78c1282b Bump html_root_url version. 2019-04-25 11:15:42 -07:00
Alex Crichton 441fdb28bd
Merge pull request #304 from felixrabe/patch-1
README.md: `0.4` -> `0.5`
2019-04-25 08:27:12 -07:00
Felix Rabe 1b4668d094
README.md: `0.4` -> `0.5` 2019-04-24 21:37:54 +02:00
Alex Crichton 9535264625
Merge pull request #301 from nickelc/from_table
implement From<toml::value::Table> for toml::Value
2019-04-09 09:07:45 -05:00