Skip to content

Commit 7ef0b53

Browse files
committed
Merge branch 'no_enum_default'
2 parents a06a74c + 82a6192 commit 7ef0b53

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ All notable changes starting with v0.1.34 to this project will be documented in
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
# v0.1.63 (2022-05-11)
9+
- **changed:** removed default enum feature to make it possible to use stable tool chain.
10+
811
# v0.1.61 (2022-03-13)
912
- **changed:** removed trailing slash from `tx/` post to be compatible with change in arweave gateway.
1013

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "arloader"
33
authors = ["calebeverett <caleb@calebeverett.io>"]
44
description = "Command line application and library for uploading files to Arweave."
5-
version = "0.1.62"
5+
version = "0.1.63"
66
edition = "2021"
77
license = "Apache-2.0"
88
repository = "https://github.com/CalebEverett/arloader"

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
//! #### Solana
7171
//! The functions for allowing payment to be made in SOL can be found in the [`solana`] module.
7272
73-
#![feature(derive_default_enum)]
7473
use blake3;
7574
use chrono::Utc;
7675
use futures::{

src/status.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,20 @@ pub struct RawStatus {
2020
}
2121

2222
/// Indicates transaction status on the network, from Submitted to Confirmed.
23-
#[derive(Serialize, Deserialize, Debug, Default, PartialEq, Clone, Eq, Hash)]
23+
#[derive(Serialize, Deserialize, Debug, PartialEq, Clone, Eq, Hash)]
2424
pub enum StatusCode {
25-
#[default]
2625
Submitted,
2726
Pending,
2827
Confirmed,
2928
NotFound,
3029
}
3130

31+
impl Default for StatusCode {
32+
fn default() -> Self {
33+
StatusCode::Submitted
34+
}
35+
}
36+
3237
impl std::fmt::Display for StatusCode {
3338
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3439
match self {

0 commit comments

Comments
 (0)