From 608dfc82c2db366b54930f37ee9b3747b9dfe8c8 Mon Sep 17 00:00:00 2001 From: photino Date: Fri, 28 Jul 2023 20:15:15 +0800 Subject: [PATCH] Release 0.11.5 --- examples/actix-app/Cargo.toml | 8 ++++---- examples/axum-app/Cargo.toml | 8 ++++---- zino-core/Cargo.toml | 2 +- zino-core/src/error/mod.rs | 4 ++-- zino-core/src/file/mod.rs | 12 +++++++----- zino-derive/Cargo.toml | 4 ++-- zino-model/Cargo.toml | 6 +++--- zino/Cargo.toml | 4 ++-- 8 files changed, 25 insertions(+), 23 deletions(-) diff --git a/examples/actix-app/Cargo.toml b/examples/actix-app/Cargo.toml index 60624954..6ac5e9b0 100644 --- a/examples/actix-app/Cargo.toml +++ b/examples/actix-app/Cargo.toml @@ -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", @@ -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" diff --git a/examples/axum-app/Cargo.toml b/examples/axum-app/Cargo.toml index c7a5f370..cf5b8924 100644 --- a/examples/axum-app/Cargo.toml +++ b/examples/axum-app/Cargo.toml @@ -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", @@ -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" diff --git a/zino-core/Cargo.toml b/zino-core/Cargo.toml index 9b6ef14c..b8b10443 100644 --- a/zino-core/Cargo.toml +++ b/zino-core/Cargo.toml @@ -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" diff --git a/zino-core/src/error/mod.rs b/zino-core/src/error/mod.rs index 05adf0ad..e57f9319 100644 --- a/zino-core/src/error/mod.rs +++ b/zino-core/src/error/mod.rs @@ -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)] @@ -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 { Source::new(self) } diff --git a/zino-core/src/file/mod.rs b/zino-core/src/file/mod.rs index 7096d97a..ea67c8c7 100644 --- a/zino-core/src/file/mod.rs +++ b/zino-core/src/file/mod.rs @@ -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)] @@ -89,10 +94,7 @@ impl NamedFile { /// Appends the bytes into path. #[inline] pub fn append>(&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()) } diff --git a/zino-derive/Cargo.toml b/zino-derive/Cargo.toml index 8442e7b3..7ed26118 100644 --- a/zino-derive/Cargo.toml +++ b/zino-derive/Cargo.toml @@ -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" @@ -21,5 +21,5 @@ syn = "2.0.27" [dependencies.zino-core] path = "../zino-core" -version = "0.11.4" +version = "0.11.5" features = ["orm"] diff --git a/zino-model/Cargo.toml b/zino-model/Cargo.toml index a7b9404b..35cf93f6 100644 --- a/zino-model/Cargo.toml +++ b/zino-model/Cargo.toml @@ -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" @@ -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" diff --git a/zino/Cargo.toml b/zino/Cargo.toml index da319d58..d07e9094 100644 --- a/zino/Cargo.toml +++ b/zino/Cargo.toml @@ -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" @@ -125,4 +125,4 @@ optional = true [dependencies.zino-core] path = "../zino-core" -version = "0.11.4" +version = "0.11.5"