identity_function/
lib.rs

1// this is really cool identity function, hi from jerk.rs
2pub fn idt<T>(t: T) -> T {
3    t
4}
5
6#[cfg(test)]
7mod tests {
8
9    use super::idt;
10
11    #[test]
12    fn idt_test() {
13        let a = Some(Some(0));
14        let b = a.and_then(idt);
15        assert_eq!(Some(0), b);
16    }
17}