]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Avoid unnecessarily overriding `serialized_length`
authorMatt Corallo <git@bluematt.me>
Sat, 4 Nov 2023 16:21:29 +0000 (16:21 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 4 Nov 2023 16:21:29 +0000 (16:21 +0000)
...as LLVM will handle it just fine for us, in most cases.

lightning/src/ln/script.rs

index 6c1d2102400786d41a124eafd26db70903bb82d2..079416eae77d29dcca818256950451a4b835eb7a 100644 (file)
@@ -44,10 +44,6 @@ impl Writeable for ShutdownScript {
        fn write<W: Writer>(&self, w: &mut W) -> Result<(), io::Error> {
                self.0.write(w)
        }
-
-       fn serialized_length(&self) -> usize {
-               self.0.serialized_length()
-       }
 }
 
 impl Readable for ShutdownScript {