You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's much easier to get packaged in distributions, etc, if we use a stable Rust version.
This is a long term goal, for now nightly features are considered useful for speeding up development.
The text was updated successfully, but these errors were encountered:
Hello, if you are intrested I wanted to help to rewrite the try_blocks to stable Rust.
To make the smallest changes possible my idea was to translate try_blocks to closures to keep the ease of use of the ? operator.
An example would be to rewrite a try_block from this: (from app.rs):
let result: anyhow::Result<()> = try {
let amount = src_clone.read(&mut buf)?;
buf.truncate(amount);
tx.send(buf)?;};
To something like this:
let result = || -> anyhow::Result<()>{let amount = src_clone.read(&mut buf)?;
buf.truncate(amount);
tx.send(buf)?;Ok(())}();
Thank you, this is something to consider, but for now hexerator depends on a lot of different nightly features, so it's not high priority to stop using them.
Ideally, when the time comes to start using stable Rust, try blocks will be a stable feature.
Although that might be too optimistic of an assumption.
It's much easier to get packaged in distributions, etc, if we use a stable Rust version.
This is a long term goal, for now nightly features are considered useful for speeding up development.
The text was updated successfully, but these errors were encountered: