]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_index/src/vec.rs
Rollup merge of #98707 - joboet:fuchsia_locks, r=m-ou-se
[rust.git] / compiler / rustc_index / src / vec.rs
index a8c611e18ff395c8bedcaa26937ffafe6364389c..1a55519d7b120f21ba24c9b6b4d801df74de1499 100644 (file)
@@ -60,8 +60,8 @@ pub struct IndexVec<I: Idx, T> {
 unsafe impl<I: Idx, T> Send for IndexVec<I, T> where T: Send {}
 
 impl<S: Encoder, I: Idx, T: Encodable<S>> Encodable<S> for IndexVec<I, T> {
-    fn encode(&self, s: &mut S) -> Result<(), S::Error> {
-        Encodable::encode(&self.raw, s)
+    fn encode(&self, s: &mut S) {
+        Encodable::encode(&self.raw, s);
     }
 }