summaryrefslogtreecommitdiff
path: root/lib.rs
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2021-09-23 07:45:06 -0700
committerJoel Galenson <jgalenson@google.com>2021-09-23 07:46:44 -0700
commit332a66facab1b56479205610842a2f8c708d2d63 (patch)
treea96b08803f6c430424c1efffe42f6809632585fd /lib.rs
parent8985bd8fe54d572fa1e7f08434d79900d33f76f5 (diff)
downloadmatches-332a66facab1b56479205610842a2f8c708d2d63.tar.gz
Upgrade rust/crates/matches to 0.1.9
Test: make Change-Id: Id3ca1af3256cb078d3206ef05e551e5d6b0170c1
Diffstat (limited to 'lib.rs')
-rw-r--r--lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib.rs b/lib.rs
index b183925..01ccbf9 100644
--- a/lib.rs
+++ b/lib.rs
@@ -1,3 +1,8 @@
+#![no_std]
+
+// ANDROID: Use std to allow building as a dylib.
+extern crate std;
+
/// Check if an expression matches a refutable pattern.
///
/// Syntax: `matches!(` *expression* `,` *pattern* `)`