Skip to content

Commit

Permalink
add inline
Browse files Browse the repository at this point in the history
  • Loading branch information
cksac committed Dec 27, 2024
1 parent a620c6a commit f6b2b8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fake/src/faker/impls/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ pub trait CityNameGenFn: Data + Sized + Copy {
}

impl<L: CityNameGenFn> Dummy<CityName<L>> for String {
#[inline(always)]
fn dummy_with_rng<R: Rng + ?Sized>(c: &CityName<L>, rng: &mut R) -> Self {
L::gen(c, rng)
}
Expand Down

0 comments on commit f6b2b8a

Please sign in to comment.