Skip to content

This crate adds functions to more easlily log errors with the log crate

Notifications You must be signed in to change notification settings

ninomerlino/unwrap_or_log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unwrap_or_log

This crate adds a function to all [std::results::Result<T,E>] where E implements [std::error::Error] by implementing the trait [LogError] for them

The trait [LogError] exposes a function [LogError::log_error] that takes a result, logs it if it's an error and returns it unmodified:

About

This crate adds functions to more easlily log errors with the log crate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages