Skip to content

Commit

Permalink
Merge branch 'no_enum_default'
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebEverett committed May 12, 2022
2 parents a06a74c + 82a6192 commit 7ef0b53
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ All notable changes starting with v0.1.34 to this project will be documented in
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

# v0.1.63 (2022-05-11)
- **changed:** removed default enum feature to make it possible to use stable tool chain.

# v0.1.61 (2022-03-13)
- **changed:** removed trailing slash from `tx/` post to be compatible with change in arweave gateway.

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "arloader"
authors = ["calebeverett <[email protected]>"]
description = "Command line application and library for uploading files to Arweave."
version = "0.1.62"
version = "0.1.63"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/CalebEverett/arloader"
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
//! #### Solana
//! The functions for allowing payment to be made in SOL can be found in the [`solana`] module.
#![feature(derive_default_enum)]
use blake3;
use chrono::Utc;
use futures::{
Expand Down
9 changes: 7 additions & 2 deletions src/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,20 @@ pub struct RawStatus {
}

/// Indicates transaction status on the network, from Submitted to Confirmed.
#[derive(Serialize, Deserialize, Debug, Default, PartialEq, Clone, Eq, Hash)]
#[derive(Serialize, Deserialize, Debug, PartialEq, Clone, Eq, Hash)]
pub enum StatusCode {
#[default]
Submitted,
Pending,
Confirmed,
NotFound,
}

impl Default for StatusCode {
fn default() -> Self {
StatusCode::Submitted
}
}

impl std::fmt::Display for StatusCode {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self {
Expand Down

0 comments on commit 7ef0b53

Please sign in to comment.