Skip to content

Commit

Permalink
fix unreachable-pub warning
Browse files Browse the repository at this point in the history
  • Loading branch information
anarachnid committed Dec 12, 2023
1 parent 7c076b4 commit 0bf1cd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ide-assists/src/handlers/add_generic_parameter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ const _: () = {
// I copied this from edit_in_place.rs::add_generic_param
// I'm not sure why this didnt exist already
// FIXME: add to crates/syntax/src/ast/edit_in_place.rs
pub fn add_generic_arg(self_: ast::GenericArgList, generic_arg: ast::GenericArg) {
fn add_generic_arg(self_: ast::GenericArgList, generic_arg: ast::GenericArg) {
match self_.generic_args().last() {
Some(last) => {
let position = Position::after(last.syntax());
Expand Down

0 comments on commit 0bf1cd5

Please sign in to comment.