Skip to content

Commit 59cc783

Browse files
committed
Correct errors produced by CI
1 parent 8123a39 commit 59cc783

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ struct Field {
106106
}
107107

108108
impl Field {
109-
pub fn new(
109+
pub(crate) fn new(
110110
ctx: &AssistContext<'_>,
111111
f: Either<ast::RecordField, (ast::TupleField, ast::TupleFieldList)>,
112112
) -> Option<Field> {
@@ -208,12 +208,12 @@ struct Struct {
208208
}
209209

210210
impl Struct {
211-
pub fn new(s: ast::Struct) -> Option<Self> {
211+
pub(crate) fn new(s: ast::Struct) -> Option<Self> {
212212
let name = s.name()?;
213213
Some(Struct { name, strukt: s })
214214
}
215215

216-
pub fn delegate(&self, field: Field, acc: &mut Assists, ctx: &AssistContext<'_>) {
216+
pub(crate) fn delegate(&self, field: Field, acc: &mut Assists, ctx: &AssistContext<'_>) {
217217
let db = ctx.db();
218218
for delegee in &field.impls {
219219
// FIXME : We can omit already implemented impl_traits

0 commit comments

Comments
 (0)