diff options
| author | Fuwn <[email protected]> | 2023-04-16 01:03:45 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-04-16 01:03:45 -0700 |
| commit | 5da88a38bc3d5873a633f593772481fc99129698 (patch) | |
| tree | fcc4163b1540e64659f2f262fb0fd1aa05993852 /src | |
| parent | refactor(macros): delete unused (diff) | |
| download | locus-5da88a38bc3d5873a633f593772481fc99129698.tar.xz locus-5da88a38bc3d5873a633f593772481fc99129698.zip | |
fix(macros): tamper with module resolution
Diffstat (limited to 'src')
| -rw-r--r-- | src/macros.rs | 6 |
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() }, |