diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2021-04-02 15:47:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-02 09:47:57 -0400 |
commit | 058579da562989ed15c86598053644bbc86c6747 (patch) | |
tree | 7f0f2bf30684dcbb350b93d987771f17a4abd250 /core/error.rs | |
parent | adf57610904cb4f4ef25fb077f6e39c9017a4ea9 (diff) |
refactor(ops): remove variadic buffers (#9944)
Diffstat (limited to 'core/error.rs')
-rw-r--r-- | core/error.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/error.rs b/core/error.rs index 563d8ed5e..a269d637f 100644 --- a/core/error.rs +++ b/core/error.rs @@ -59,6 +59,10 @@ pub fn resource_unavailable() -> AnyError { ) } +pub fn null_opbuf() -> AnyError { + type_error("expected non-null op buffer arg") +} + /// A simple error type that lets the creator specify both the error message and /// the error class name. This type is private; externally it only ever appears /// wrapped in an `AnyError`. To retrieve the error class name from a wrapped |