Skip to content

Fix warnings#38

Open
greetingsfellowhumans wants to merge 5 commits into
johnnyji:masterfrom
greetingsfellowhumans:fix_warnings
Open

Fix warnings#38
greetingsfellowhumans wants to merge 5 commits into
johnnyji:masterfrom
greetingsfellowhumans:fix_warnings

Conversation

@greetingsfellowhumans

@greetingsfellowhumans greetingsfellowhumans commented Jul 6, 2026

Copy link
Copy Markdown

This PR fixes two compiler warnings.

  1. A deprecated call to use Mix.Config. Since the config file is actually empty, I just deleted it entirely instead of using the newer approach. That way, we maintain backwards compatibility.
  2. Duplicate @doc definitions for snake_case/1 squashed into one.

I also refactored/simplified the snake_case/1 function.
Rather than three different function bodies, I made it two. One for Strings/atoms, the other as a catchall.

This allows it to work for all types, and not just numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant