Skip to content

Commit b99cbaa

Browse files
committed
Fixed import/visibility error discovered by CI
1 parent 57b5e79 commit b99cbaa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

const_format_proc_macros/src/format_str/parsing.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ use crate::{
77

88
#[cfg(test)]
99
impl FmtStrComponent {
10-
fn str(s: &str) -> Self {
10+
pub(super) fn str(s: &str) -> Self {
1111
Self::Str(s.to_string(), StrRawness::dummy())
1212
}
13-
fn arg(which_arg: WhichArg, formatting: FormattingFlags) -> Self {
13+
pub(super) fn arg(which_arg: WhichArg, formatting: FormattingFlags) -> Self {
1414
Self::Arg(FmtArg {
1515
which_arg,
1616
formatting,
@@ -31,7 +31,7 @@ impl FmtArg {
3131

3232
#[allow(dead_code)]
3333
impl WhichArg {
34-
fn ident(s: &str) -> Self {
34+
pub(super) fn ident(s: &str) -> Self {
3535
Self::Ident(s.to_string())
3636
}
3737
}

const_format_proc_macros/src/format_str/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use super::*;
22

33
use super::{ParseError as PE, ParseErrorKind as PEK};
44

5-
use crate::formatting::{FormattingFlags as FF, IsAlternate};
5+
use crate::formatting::{FormattingFlags as FF, IsAlternate, NumberFormatting};
66

77
use fastrand::Rng;
88

0 commit comments

Comments
 (0)