romanzolotarev.com is a Fediverse instance that uses the ActivityPub protocol. In other words, users at this host can communicate with people that use software like Mastodon, Pleroma, Friendica, etc. all around the world.

This server runs the snac software and there is no automatic sign-up process.

Site description
/pub
Admin account
@hi@romanzolotarev.com

Search results for tag #rust

[?]Wesley Moore » 🌐
@wezm@mastodon.decentralised.social

Ever see a compiler warning with a suggested fix and wish the compiler would do it for you? Well, good news! `cargo fix`—built into Cargo can do that.

The first screenshot shows a warning about elided lifetimes. The second screenshot shows the code after running `cargo fix`. It has applied the suggestion.

`cargo fix` is conservative, so you will usually need one of the `--allow` options to allow it make change. In my case I had all modified code staged in `git`, so used `--allow-staged`.

warning: hiding a lifetime that's elided elsewhere is confusing

help: use `'_` for type paths:

fn partition_files(files: &[InputFile]) -> (ArgVec<'_>, ArgVec<'_>)

Alt...warning: hiding a lifetime that's elided elsewhere is confusing help: use `'_` for type paths: fn partition_files(files: &[InputFile]) -> (ArgVec<'_>, ArgVec<'_>)

The code has been updated to:

fn partition_files(files: &[InputFile]) -> (ArgVec<'_>, ArgVec<'_>) {

Alt...The code has been updated to: fn partition_files(files: &[InputFile]) -> (ArgVec<'_>, ArgVec<'_>) {