Skip to content

Set all crates to 2021 edition#580

Merged
KodrAus merged 1 commit into
rust-lang:masterfrom
nyurik:edition
Aug 28, 2023
Merged

Set all crates to 2021 edition#580
KodrAus merged 1 commit into
rust-lang:masterfrom
nyurik:edition

Conversation

@nyurik

@nyurik nyurik commented Aug 20, 2023

Copy link
Copy Markdown
Contributor

For some reason all crates still use 2015 edition. I think it is a good idea to specify edition explicitly, or at least document why it should be kept back (and still add it to the cargo.toml for documentation purposes)

  • Remove all extern crate
  • changed use self::sval::... to use sval::..., and the same for sval_ref
  • Simplified fn get<'v>(&'v self, key: Key) -> Option<Value<'v>> to fn get(&self, key: Key) -> Option<Value<'_>>
  • Simplified many unit tests with references

@Thomasdezeeuw Thomasdezeeuw left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, but the CI is failing.

@nyurik

nyurik commented Aug 20, 2023

Copy link
Copy Markdown
Contributor Author

It took a few tries, but I think I fixed all the outstanding issues with this one. As the result, 50 less lines of code, and a few extra CI checks.

Comment thread .github/workflows/main.yml
@KodrAus

KodrAus commented Aug 20, 2023

Copy link
Copy Markdown
Contributor

Thanks for doing some much needed housekeeping @nyurik! It looks like we just have some conflicts to resolve now.

@nyurik

nyurik commented Aug 21, 2023

Copy link
Copy Markdown
Contributor Author

thx @KodrAus, rebased & fixed

@nyurik

nyurik commented Aug 28, 2023

Copy link
Copy Markdown
Contributor Author

@KodrAus hi, would you be the right person to review? I would like to make a few more improvements like use workspaces, but all other changes would be based on this one, so I don't want to make them until this is agreed on & merged. Thx!

@KodrAus KodrAus merged commit 242a982 into rust-lang:master Aug 28, 2023
@KodrAus

KodrAus commented Aug 28, 2023

Copy link
Copy Markdown
Contributor

Merged! Thanks again @nyurik

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.

3 participants