From b0733edacc606de180a3cb083212ef013ae1f136 Mon Sep 17 00:00:00 2001 From: Piotr Jawniak Date: Sun, 1 Jun 2014 10:12:07 +0200 Subject: [PATCH] One new snippet and one small fix for Rust --- UltiSnips/rust.snippets | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/UltiSnips/rust.snippets b/UltiSnips/rust.snippets index 425833f..d7f0047 100644 --- a/UltiSnips/rust.snippets +++ b/UltiSnips/rust.snippets @@ -103,8 +103,12 @@ snippet feat "#![feature(..)]" b #![feature(${1:macro_rules})] endsnippet -snippet der "#![deriving(..)]" b -#![deriving(${1:Show})] +snippet der "#[deriving(..)]" b +#[deriving(${1:Show})] +endsnippet + +snippet attr "#[..]" b +#[${1:inline}] endsnippet snippet opt "Option<..>"