Skip to content

Task/fix compiler warnings#141

Merged
agatheblues merged 6 commits intomainfrom
task/fix-compiler-warnings
Aug 11, 2025
Merged

Task/fix compiler warnings#141
agatheblues merged 6 commits intomainfrom
task/fix-compiler-warnings

Conversation

@agatheblues
Copy link
Contributor

The PR fixes various compiler warnings:

 warning: single-quoted string represent charlists. Use ~c''' if you indeed want a charlist or use """ instead
     │
 426 │     '''
     │     ~
     │
     └─ lib/bitstyles_phoenix/component/button.ex:426:5
warning: giving a binary to :assets is deprecated, please give a map from source to target instead:

    [assets: %{"assets" => "assets"}]

  (ex_doc 0.38.2) lib/ex_doc/formatter/html.ex:265: ExDoc.Formatter.HTML.generate_assets/3
  (ex_doc 0.38.2) lib/ex_doc/formatter/epub.ex:35: ExDoc.Formatter.EPUB.run/3
  (ex_doc 0.38.2) lib/mix/tasks/docs.ex:531: anonymous fn/6 in Mix.Tasks.Docs.run/3
  (elixir 1.18.3) lib/enum.ex:1714: Enum."-map/2-lists^map/1-1-"/2
  (elixir 1.18.3) lib/enum.ex:1714: Enum."-map/2-lists^map/1-1-"/2
  (ex_doc 0.38.2) lib/mix/tasks/docs.ex:530: Mix.Tasks.Docs.run/3

And upgrades the dependencies.

Replace ''' by """ and escape nested quotes.

Warning:

```
 warning: single-quoted string represent charlists. Use ~c''' if you indeed want a charlist or use """ instead
     │
 426 │     '''
     │     ~
     │
     └─ lib/bitstyles_phoenix/component/button.ex:426:5
```
```
warning: giving a binary to :assets is deprecated, please give a map from source to target instead:

    [assets: %{"assets" => "assets"}]

  (ex_doc 0.38.2) lib/ex_doc/formatter/html.ex:265: ExDoc.Formatter.HTML.generate_assets/3
  (ex_doc 0.38.2) lib/ex_doc/formatter/epub.ex:35: ExDoc.Formatter.EPUB.run/3
  (ex_doc 0.38.2) lib/mix/tasks/docs.ex:531: anonymous fn/6 in Mix.Tasks.Docs.run/3
  (elixir 1.18.3) lib/enum.ex:1714: Enum."-map/2-lists^map/1-1-"/2
  (elixir 1.18.3) lib/enum.ex:1714: Enum."-map/2-lists^map/1-1-"/2
  (ex_doc 0.38.2) lib/mix/tasks/docs.ex:530: Mix.Tasks.Docs.run/3
```
@agatheblues agatheblues force-pushed the task/fix-compiler-warnings branch from dcfd5b9 to c07ddc1 Compare August 6, 2025 12:47
@agatheblues agatheblues linked an issue Aug 6, 2025 that may be closed by this pull request
@agatheblues agatheblues merged commit d5913bc into main Aug 11, 2025
3 checks passed
@agatheblues agatheblues deleted the task/fix-compiler-warnings branch August 11, 2025 09:17
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.

Fix compiler warnings with Elixir v17+/18+

2 participants