--- Day changed Thu Oct 18 2018 14:15 < stevenroose> Doesn't seem to be possible to call a trait's default method when implementing a trait for a struct. Basically like Java's super().. I thought MyTrait::method(self, ...) would do it, but that also brings you to the implementation for the struct 14:31 < jnewbery> stevenroose: that's correct. https://doc.rust-lang.org/book/2018-edition/ch10-02-traits.html#default-implementations 14:31 < jnewbery> "Note that it isn’t possible to call the default implementation from an overriding implementation of that same method. 15:20 < stevenroose> jnewbery: k, strange. Because the methods are self-contained with reference to self, so I don't see what problems allowing that would give. Perhaps just no syntax for it yet. 15:21 < stevenroose> Also, andytoshi: I fixed the transport mess and I'm exchanging messages with the Trezor :) now it's just matter of producing methods for all the calls, but I'll probably postpone that :D 15:22 < andytoshi> yeah i think it's just 'no syntax'. but also, that's a very OO-style thing to do .. i've never wanted to do this, probably most rust langugae designers haven't wanted to either 16:30 < stevenroose> Another question (tell me to buckle off to a Rust IRC if I'm bothering with off-topics..): Rust code that is not used when compiling is trimmed from the binary, right? How about enum variants that are not used? 16:30 < stevenroose> Aaargh, they can't be. 16:31 < stevenroose> Trezor supports like 20 shitcoins, so either I don't support them at all (i.e. user can also not manually do message exchanges for those coins) or a have a bunch of boilerplate code for a shitload of messages :D 16:32 < stevenroose> Trezor decided it was a good idea to have their protocol be superinteractive. So that means that every message you send can either be responded to with a Success, Failure, ButtonRequest, PinRequest or PassphraseRequest 16:34 < andytoshi> i would not worry about application size when writing a binary :) 16:35 < stevenroose> library* that a user might want to use only 1% of the functionality of :p 16:35 < stevenroose> But yeah the binary doesn't need to be stored onchain, so I guess I shouldn't matter.