Skip to content

Commit

Permalink
add missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
blaynem committed Jul 19, 2024
1 parent bf21ea7 commit b4865e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions components/experimental/src/dimension/percent/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

use fixed_decimal::{FixedDecimal, Sign};

use crate::alloc::borrow::ToOwned;
use crate::alloc::string::ToString;
use alloc::string::String;
use writeable::Writeable;

use crate::dimension::provider::percent::PercentEssentialsV1;
Expand Down
2 changes: 1 addition & 1 deletion components/experimental/src/dimension/percent/formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl PercentFormatter {
/// use writeable::Writeable;
///
/// let locale = locale!("en-US").into();
/// let fmt = PercentFormatter::try_new(&locale).unwrap();
/// let fmt = PercentFormatter::try_new(&locale, Default::default()).unwrap();
/// let value = "12345.67".parse().unwrap();
/// let formatted_percent = fmt.format_percent(&value);
/// let mut sink = String::new();
Expand Down

0 comments on commit b4865e1

Please sign in to comment.