cursorless icon indicating copy to clipboard operation
cursorless copied to clipboard

Rust functions don't include annotations

Open pokey opened this issue 3 years ago • 0 comments

In the following function:

    #[test]
    fn test_revset_parse_parentheses() -> eyre::Result<()> {
        insta::assert_debug_snapshot!(parse("((foo()))"), @r###"
        Ok(
            FunctionCall(
                "foo",
                [],
            ),
        )
        "###);

        Ok(())
    }

Using the funk modifier does not include the line #[test]. For consistency with python, where we include decorators, this line should be included

pokey avatar Sep 23 '22 08:09 pokey