Skip to content

Commit 03bc46f

Browse files
authored
Convert pub to pub(crate)
1 parent 6f201cf commit 03bc46f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/ide-assists/src/handlers/convert_comment_block.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ fn line_to_block(acc: &mut Assists, comment: ast::Comment) -> Option<()> {
107107
/// The line -> block assist can be invoked from anywhere within a sequence of line comments.
108108
/// relevant_line_comments crawls backwards and forwards finding the complete sequence of comments that will
109109
/// be joined.
110-
pub fn relevant_line_comments(comment: &ast::Comment) -> Vec<Comment> {
110+
pub(crate) fn relevant_line_comments(comment: &ast::Comment) -> Vec<Comment> {
111111
// The prefix identifies the kind of comment we're dealing with
112112
let prefix = comment.prefix();
113113
let same_prefix = |c: &ast::Comment| c.prefix() == prefix;
@@ -159,7 +159,7 @@ pub fn relevant_line_comments(comment: &ast::Comment) -> Vec<Comment> {
159159
// */
160160
//
161161
// But since such comments aren't idiomatic we're okay with this.
162-
pub fn line_comment_text(indentation: IndentLevel, comm: ast::Comment) -> String {
162+
pub(crate) fn line_comment_text(indentation: IndentLevel, comm: ast::Comment) -> String {
163163
let contents_without_prefix = comm.text().strip_prefix(comm.prefix()).unwrap();
164164
let contents = contents_without_prefix.strip_prefix(' ').unwrap_or(contents_without_prefix);
165165

crates/ide-assists/src/handlers/raw_string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ pub(crate) fn remove_hash(acc: &mut Assists, ctx: &AssistContext<'_>) -> Option<
155155
})
156156
}
157157

158-
pub fn required_hashes(s: &str) -> usize {
158+
pub(crate) fn required_hashes(s: &str) -> usize {
159159
let mut res = 0usize;
160160
for idx in s.match_indices('"').map(|(i, _)| i) {
161161
let (_, sub) = s.split_at(idx + 1);

0 commit comments

Comments
 (0)