Skip to content

Commit 213d82e

Browse files
committed
feat: v0.8.1
1 parent f572ba2 commit 213d82e

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "file-operation"
3-
version = "0.8.0"
3+
version = "0.8.1"
44
edition = "2024"
55
authors = ["[email protected]"]
66
license = "MIT"

src/file/impl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use super::r#struct::FileDataString;
22
use std::fmt;
33

4-
/// Implementation of conversion from byte vector to FileDataString.
4+
/// Provides conversion implementation from byte vector to FileDataString.
55
impl From<Vec<u8>> for FileDataString {
66
/// Converts a byte vector to FileDataString.
77
///
@@ -17,7 +17,7 @@ impl From<Vec<u8>> for FileDataString {
1717
}
1818
}
1919

20-
/// Implementation of Display trait for FileDataString.
20+
/// Provides Display trait implementation for FileDataString.
2121
impl fmt::Display for FileDataString {
2222
/// Formats the FileDataString for display.
2323
///

src/move/async/fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub async fn async_move_file(src: &str, dest: &str) -> Result<(), Error> {
2929
///
3030
/// # Returns
3131
///
32-
/// - `Result<(), std::io::Error>` - Ok if the directory was moved successfully, Err with error details otherwise.
32+
/// - `Pin<Box<dyn Future<Output = Result<(), std::io::Error>> + 'a>>` - A pinned boxed future that resolves to the move operation result.
3333
pub fn async_move_dir<'a>(
3434
src_dir: &'a str,
3535
dest_dir: &'a str,

src/read/async/fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use tokio::io::AsyncReadExt;
1010
///
1111
/// # Returns
1212
///
13-
/// - `Result<T, Box<dyn std::error::Error>>` - The converted file content or an error.
13+
/// - `Result<T, Box<dyn std::error::Error + Send + Sync>>` - The converted file content or an error.
1414
pub async fn async_read_from_file<T>(file_path: &str) -> Result<T, Box<dyn std::error::Error>>
1515
where
1616
T: From<Vec<u8>>,

src/read/sync/fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::path::Path;
1010
///
1111
/// # Returns
1212
///
13-
/// - `Result<T, Box<dyn std::error::Error>>` - The converted file content or an error.
13+
/// - `Result<T, Box<dyn std::error::Error + Send + Sync>>` - The converted file content or an error.
1414
pub fn read_from_file<T>(file_path: &str) -> Result<T, Box<dyn std::error::Error>>
1515
where
1616
T: From<Vec<u8>>,

0 commit comments

Comments
 (0)