summaryrefslogtreecommitdiff
path: root/vendor/thiserror/src/var.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/thiserror/src/var.rs')
-rw-r--r--vendor/thiserror/src/var.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/thiserror/src/var.rs b/vendor/thiserror/src/var.rs
new file mode 100644
index 00000000..ecfcd857
--- /dev/null
+++ b/vendor/thiserror/src/var.rs
@@ -0,0 +1,9 @@
+use core::fmt::{self, Pointer};
+
+pub struct Var<'a, T: ?Sized>(pub &'a T);
+
+impl<'a, T: Pointer + ?Sized> Pointer for Var<'a, T> {
+ fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
+ Pointer::fmt(self.0, formatter)
+ }
+}