This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -167,23 +167,23 @@ impl Mode {
167167 }
168168
169169 /// Non-byte literals should have `\xXX` escapes that are within the ASCII range.
170- pub fn ascii_escapes_should_be_ascii ( self ) -> bool {
170+ fn ascii_escapes_should_be_ascii ( self ) -> bool {
171171 match self {
172172 Mode :: Char | Mode :: Str | Mode :: RawStr => true ,
173173 Mode :: Byte | Mode :: ByteStr | Mode :: RawByteStr | Mode :: CStr | Mode :: RawCStr => false ,
174174 }
175175 }
176176
177177 /// Whether characters within the literal must be within the ASCII range
178- pub fn characters_should_be_ascii ( self ) -> bool {
178+ fn characters_should_be_ascii ( self ) -> bool {
179179 match self {
180180 Mode :: Byte | Mode :: ByteStr | Mode :: RawByteStr => true ,
181181 Mode :: Char | Mode :: Str | Mode :: RawStr | Mode :: CStr | Mode :: RawCStr => false ,
182182 }
183183 }
184184
185185 /// Byte literals do not allow unicode escape.
186- pub fn is_unicode_escape_disallowed ( self ) -> bool {
186+ fn is_unicode_escape_disallowed ( self ) -> bool {
187187 match self {
188188 Mode :: Byte | Mode :: ByteStr | Mode :: RawByteStr => true ,
189189 Mode :: Char | Mode :: Str | Mode :: RawStr | Mode :: CStr | Mode :: RawCStr => false ,
You can’t perform that action at this time.
0 commit comments