Skip to content

Commit 028bab3

Browse files
committed
Get rid of crate and $crate
1 parent e2346b7 commit 028bab3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/convolution.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ macro_rules! modulus {
88
const VALUE: u32 = $name as _;
99
const HINT_VALUE_IS_PRIME: bool = true;
1010

11-
fn butterfly_cache() -> &'static ::std::thread::LocalKey<::std::cell::RefCell<::std::option::Option<$crate::modint::ButterflyCache<Self>>>> {
11+
fn butterfly_cache() -> &'static ::std::thread::LocalKey<::std::cell::RefCell<::std::option::Option<self::modint::ButterflyCache<Self>>>> {
1212
thread_local! {
13-
static BUTTERFLY_CACHE: ::std::cell::RefCell<::std::option::Option<$crate::modint::ButterflyCache<$name>>> = ::std::default::Default::default();
13+
static BUTTERFLY_CACHE: ::std::cell::RefCell<::std::option::Option<self::modint::ButterflyCache<$name>>> = ::std::default::Default::default();
1414
}
1515
&BUTTERFLY_CACHE
1616
}
@@ -21,7 +21,7 @@ macro_rules! modulus {
2121

2222
use super::{
2323
internal_bit, internal_math,
24-
modint::{ButterflyCache, Modulus, RemEuclidU32, StaticModInt},
24+
modint::{self, ButterflyCache, Modulus, RemEuclidU32, StaticModInt},
2525
};
2626
use std::{
2727
cmp,
@@ -232,7 +232,7 @@ fn prepare<M: Modulus>() -> ButterflyCache<M> {
232232

233233
#[cfg(test)]
234234
mod tests {
235-
use super::super::modint::{Mod998244353, Modulus, RemEuclidU32, StaticModInt};
235+
use super::super::modint::{self, Mod998244353, Modulus, RemEuclidU32, StaticModInt};
236236
use rand::{rngs::ThreadRng, Rng as _};
237237
use std::{
238238
convert::{TryFrom, TryInto as _},

src/lazysegtree.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use super::internal_bit::ceil_pow2;
2-
use super::Monoid;
2+
use super::segtree::Monoid;
33

44
pub trait MapMonoid {
55
type M: Monoid;

0 commit comments

Comments
 (0)