1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use borsh::{BorshDeserialize, BorshSerialize};

use crate::NonInstantiable;

impl BorshDeserialize for NonInstantiable {
    fn deserialize_reader<R: std::io::Read>(_reader: &mut R) -> std::io::Result<Self> {
        unreachable!()
    }
}

impl BorshSerialize for NonInstantiable {
    fn serialize<W: std::io::Write>(&self, _writer: &mut W) -> std::io::Result<()> {
        unreachable!()
    }
}