Skip to content

Commit

Permalink
Release 0.11.5
Browse files Browse the repository at this point in the history
  • Loading branch information
photino committed Jul 28, 2023
1 parent 9431c1b commit 608dfc8
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 23 deletions.
8 changes: 4 additions & 4 deletions examples/actix-app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ features = ["derive"]

[dependencies.zino]
path = "../../zino"
version = "0.10.4"
version = "0.10.5"
features = ["actix", "export-pdf"]

[dependencies.zino-core]
path = "../../zino-core"
version = "0.11.4"
version = "0.11.5"
features = [
"connector",
"connector-arrow",
Expand All @@ -33,8 +33,8 @@ features = [

[dependencies.zino-derive]
path = "../../zino-derive"
version = "0.8.4"
version = "0.8.5"

[dependencies.zino-model]
path = "../../zino-model"
version = "0.8.4"
version = "0.8.5"
8 changes: 4 additions & 4 deletions examples/axum-app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ features = ["derive"]

[dependencies.zino]
path = "../../zino"
version = "0.10.4"
version = "0.10.5"
features = ["axum", "export-pdf"]

[dependencies.zino-core]
path = "../../zino-core"
version = "0.11.4"
version = "0.11.5"
features = [
"connector",
"connector-arrow",
Expand All @@ -33,8 +33,8 @@ features = [

[dependencies.zino-derive]
path = "../../zino-derive"
version = "0.8.4"
version = "0.8.5"

[dependencies.zino-model]
path = "../../zino-model"
version = "0.8.4"
version = "0.8.5"
2 changes: 1 addition & 1 deletion zino-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "zino-core"
description = "Core types and traits for zino."
version = "0.11.4"
version = "0.11.5"
rust-version = "1.72"
edition = "2021"
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions zino-core/src/error/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::{error, fmt};

mod source;

pub use source::Source;
use source::Source;

/// An error type backed by an allocation-optimized string.
#[derive(Debug)]
Expand Down Expand Up @@ -57,7 +57,7 @@ impl Error {

/// Returns an iterator of the source errors contained by `self`.
#[inline]
pub fn sources(&self) -> Source<'_> {
pub fn sources(&self) -> impl Iterator<Item = &Error> {
Source::new(self)
}

Expand Down
12 changes: 7 additions & 5 deletions zino-core/src/file/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ use crate::{crypto, encoding::hex, error::Error};
use bytes::Bytes;
use mime::Mime;
use multer::{Field, Multipart};
use std::{convert::AsRef, fs::{self, OpenOptions}, io::{self, Write}, path::Path};
use std::{
convert::AsRef,
fs::{self, OpenOptions},
io::{self, Write},
path::Path,
};

/// A file with an associated name.
#[derive(Debug, Clone, Default)]
Expand Down Expand Up @@ -89,10 +94,7 @@ impl NamedFile {
/// Appends the bytes into path.
#[inline]
pub fn append<P: AsRef<Path>>(&self, path: P) -> Result<(), io::Error> {
let mut file = OpenOptions::new()
.write(true)
.append(true)
.open(path)?;
let mut file = OpenOptions::new().write(true).append(true).open(path)?;
file.write_all(self.as_ref())
}

Expand Down
4 changes: 2 additions & 2 deletions zino-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "zino-derive"
description = "Derived traits for zino."
version = "0.8.4"
version = "0.8.5"
rust-version = "1.72"
edition = "2021"
license = "MIT"
Expand All @@ -21,5 +21,5 @@ syn = "2.0.27"

[dependencies.zino-core]
path = "../zino-core"
version = "0.11.4"
version = "0.11.5"
features = ["orm"]
6 changes: 3 additions & 3 deletions zino-model/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "zino-model"
description = "Model types for zino."
version = "0.8.4"
version = "0.8.5"
rust-version = "1.72"
edition = "2021"
license = "MIT"
Expand Down Expand Up @@ -38,9 +38,9 @@ features = ["derive"]

[dependencies.zino-core]
path = "../zino-core"
version = "0.11.4"
version = "0.11.5"
features = ["orm"]

[dependencies.zino-derive]
path = "../zino-derive"
version = "0.8.4"
version = "0.8.5"
4 changes: 2 additions & 2 deletions zino/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "zino"
description = "Next-generation framework for composable applications in Rust."
version = "0.10.4"
version = "0.10.5"
rust-version = "1.72"
edition = "2021"
license = "MIT"
Expand Down Expand Up @@ -125,4 +125,4 @@ optional = true

[dependencies.zino-core]
path = "../zino-core"
version = "0.11.4"
version = "0.11.5"

0 comments on commit 608dfc8

Please sign in to comment.