mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
Remove comment about method being deprecated
I had a look for two mintues at converting things to .try_inner() and I don't think this is currently worth the effort or would increase readability a lot. So let's leave this for now.
This commit is contained in:
committed by
holger krekel
parent
c79fcb380b
commit
7274197da0
@@ -109,10 +109,6 @@ impl ContextWrapper {
|
|||||||
/// the appropriate return value for an error return since this
|
/// the appropriate return value for an error return since this
|
||||||
/// differs for various functions on the FFI API: sometimes 0,
|
/// differs for various functions on the FFI API: sometimes 0,
|
||||||
/// NULL, an empty string etc.
|
/// NULL, an empty string etc.
|
||||||
///
|
|
||||||
/// Prefer to use [ContextWrapper::try_inner], we might want to
|
|
||||||
/// remove this function at some point to reduce the cognitive
|
|
||||||
/// overload of having two functions which are too similar.
|
|
||||||
unsafe fn with_inner<T, F>(&self, ctxfn: F) -> Result<T, ()>
|
unsafe fn with_inner<T, F>(&self, ctxfn: F) -> Result<T, ()>
|
||||||
where
|
where
|
||||||
F: FnOnce(&Context) -> T,
|
F: FnOnce(&Context) -> T,
|
||||||
|
|||||||
Reference in New Issue
Block a user