Skip to content

Commit

Permalink
proj: remove anyhow
Browse files Browse the repository at this point in the history
  • Loading branch information
chensoft committed Apr 2, 2024
1 parent 626b3a8 commit aa26f9a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Expand Up @@ -19,7 +19,6 @@ warn = []
error = []

[dependencies]
anyhow = { version = "1.0", features = ["backtrace"] }
chrono = "0.4"
encoder = "0.2"
backtrace = "0.3"
Expand Down
1 change: 1 addition & 0 deletions HISTORY.md
Expand Up @@ -15,6 +15,7 @@

### Removed

- Remove anyhow
- Remove the unnecessary `alloc` field

## [0.3.4] - 2024-03-13
Expand Down
4 changes: 2 additions & 2 deletions src/target.rs
Expand Up @@ -56,7 +56,7 @@ impl Target for StderrTarget {
/// Write to a file
///
/// ```
/// fn main() -> anyhow::Result<()> {
/// fn main() -> std::io::Result<()> {
/// let mut sample = std::env::temp_dir();
/// sample.push("sample.log");
///
Expand All @@ -74,7 +74,7 @@ pub struct FileTarget {

impl FileTarget {
/// Create a FileTarget with a path
pub fn new(path: impl AsRef<Path>) -> anyhow::Result<Self> {
pub fn new(path: impl AsRef<Path>) -> std::io::Result<Self> {
if let Some(dir) = path.as_ref().parent() {
std::fs::create_dir_all(dir)?;
}
Expand Down

0 comments on commit aa26f9a

Please sign in to comment.