Skip to content
Snippets Groups Projects
  1. Jan 10, 2024
  2. Jan 09, 2024
  3. May 30, 2023
  4. Mar 21, 2023
  5. Feb 11, 2023
  6. Jul 26, 2022
  7. Mar 25, 2022
  8. Aug 10, 2021
  9. Jun 17, 2021
  10. Aug 25, 2020
  11. Aug 02, 2020
  12. Jul 12, 2020
    • Michael McDonnell's avatar
      Fix description deprecation warnings · 5a6dcad4
      Michael McDonnell authored
      The `description` and `cause` methods in `Error` were soft deprecated in Rust 1.27 and hard deprecated in Rust 1.42 [[1]]. This change removes the use of these deprecated methods and fixes three deprecation warnings.
      
      You can verify that the test output has not changed with the following steps:
      
      1. Create the file `/etc/pkg.d/localtest`
      2. Add the line `localhost:1234` to `/etc/pkg.d/localtest`
      3. Run Netcat on port 1234 in a new terminal to simulate a server:
          ```console
          $ while true; do { echo -e 'HTTP/0 200 OK\r\n'; } | nc -l 1234; done
          ```
          The server returns an invalid HTTP version on purpose.
      4. Try to fetch a package, e.g. `pixelcannon`:
         ```console
         $ cargo run -- fetch pixelcannon
         ```
      5. Notice that you get the following error message with or without the changes:
         ```console
         * Requesting http://localhost:1234/x86_64-unknown-linux-gnu/pixelcannon.sig
         pkg: fetch: pixelcannon: failed: Invalid HTTP version specified
         ```
      
      [1]: https://blog.rust-lang.org/2020/03/12/Rust-1.42.html#errordescription-is-deprecated
      5a6dcad4
  13. Jun 05, 2020
  14. Jun 02, 2020
  15. May 28, 2020
  16. May 26, 2020
  17. May 22, 2020
  18. May 21, 2020
  19. May 18, 2020
  20. Dec 23, 2019
  21. Dec 22, 2019
  22. Nov 29, 2019
  23. Oct 20, 2019
  24. Jul 05, 2019
  25. May 12, 2019
  26. Apr 07, 2019
  27. Mar 15, 2019
  28. Oct 15, 2018
  29. Jun 12, 2018
  30. Jun 03, 2018
  31. Jun 02, 2018
Loading