Skip to content

Conversation

@ijackson
Copy link
Contributor

@ijackson ijackson commented Mar 5, 2025

Fixes #57

I think this may have been broken as a side effect of 56a40f1 apparently released in 1.3.0 (!)

ijackson added 2 commits March 5, 2025 18:45
I used this file and
   clippy -- -A clippy::all -D clippy::disallowed_methods
to find the places I needed to fix.
Copy link
Owner

@bkchr bkchr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ty! Would it be possible to get a test for this?

ijackson added 3 commits March 6, 2025 11:46
This will stop this bug sneaking back in.

Doing this here saves having to duplicate all the tests with versions
that use inline tables instead.  (We'll have one test, though.)
@ijackson
Copy link
Contributor Author

ijackson commented Mar 6, 2025

I've added a single test case, which does indeed fail now for me locally if I revert "toml_edit tables: Use TableLike and .as_table_like".

I considered how to prevent calls to .as_table sneaking back in. I don't think duplicating all the tests (or having some magic in the test that converts the TOML) is sensible. Instead, I have tried to add a CI job which uses clippy to detect this.

I don't have much experience with github CI (I mostly work with gitlab) so I hope what I've done (a) looks sane and (b) works.

@bkchr
Copy link
Owner

bkchr commented Mar 6, 2025

I don't have much experience with github CI (I mostly work with gitlab) so I hope what I've done (a) looks sane and (b) works.

Ty! All looks good. :)

@ijackson
Copy link
Contributor Author

ijackson commented Mar 6, 2025

Thanks :-).

@bkchr bkchr merged commit 88f5bf0 into bkchr:master Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failure to work with inline tables in Cargo.toml

2 participants