Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚨 Fix Clippy error use_or_insert_with #150

Merged
merged 1 commit into from
Nov 20, 2023

Commits on Nov 20, 2023

  1. 🚨 Fix Clippy error 'use_or_insert_with'

    Fixes CI failing with commit 6db5049:
    
    	error: use of `or_insert_with` to construct default value
    	Error:    --> src/lib.rs:115:18
    	    |
    	115 |                 .or_insert_with(Vec::new))
    	    |                  ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()`
    	    |
    	    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
    	    = note: `-D clippy::unwrap-or-default` implied by `-D warnings`
    
    https://github.com/nicokosi/pullpito/actions/runs/6887187730/job/18733990115
    
    Seems related to Cargo 1.73 update.
    
    I had to uninstall Hombrew-installed Rust to reproduce locally:
    
    	brew rm rust # Cargo 1.72.1
    nicokosi committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    0c4e29f View commit details
    Browse the repository at this point in the history