aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-04-16 01:03:45 -0700
committerFuwn <[email protected]>2023-04-16 01:03:45 -0700
commit5da88a38bc3d5873a633f593772481fc99129698 (patch)
treefcc4163b1540e64659f2f262fb0fd1aa05993852 /src
parentrefactor(macros): delete unused (diff)
downloadlocus-5da88a38bc3d5873a633f593772481fc99129698.tar.xz
locus-5da88a38bc3d5873a633f593772481fc99129698.zip
fix(macros): tamper with module resolution
Diffstat (limited to 'src')
-rw-r--r--src/macros.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/macros.rs b/src/macros.rs
index 3d4de2e..0d1e49d 100644
--- a/src/macros.rs
+++ b/src/macros.rs
@@ -37,15 +37,15 @@ macro_rules! success {
($body:expr, $context:ident) => {{
$crate::route::cache(&$context, &$body);
- windmark::Response::success(
+ ::windmark::Response::success(
$crate::macros::Main {
body: &$body,
hits: &$crate::route::hits_from($context.url.path()),
quote: {
- use rand::prelude::SliceRandom;
+ use ::rand::prelude::SliceRandom;
&$crate::macros::QUOTES
- .choose(&mut rand::thread_rng())
+ .choose(&mut ::rand::thread_rng())
.unwrap()
.to_string()
},