]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #50598 - whitfin:unnecessary-mut-borrow, r=michaelwoerister
authorAlex Crichton <alex@alexcrichton.com>
Thu, 10 May 2018 16:35:37 +0000 (11:35 -0500)
committerGitHub <noreply@github.com>
Thu, 10 May 2018 16:35:37 +0000 (11:35 -0500)
commit74e731fcb07de3527c84e9a30821034784aa40cd
treeb15aab98ebef5cea16693396616efcd9ff043319
parent8b5f6921047edfdfb450a4997811ef10f4025a58
parentae3feff0281b2f08f6dbb75dc2e50e338a711e5f
Rollup merge of #50598 - whitfin:unnecessary-mut-borrow, r=michaelwoerister

Remove unnecessary mutable borrow and resizing in DepGraph::serialize

I might be mistaken, but I noticed this whilst in this file for something else. It appears that this mutable borrow is unnecessary and since it's locking it should be removed. The resizing looks redundant since nothing additional is added to the fingerprints in this function, so that can also be removed.
src/librustc/dep_graph/graph.rs