diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..7dd2784 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,13 @@ +--- +kind: pipeline +name: normal +type: docker + +steps: + - name: test + image: rust:1.31 + pull: true + commands: + - cargo build + - cargo test + - cargo fmt -- --check diff --git a/src/nested_type.rs b/src/nested_type.rs index e171744..b59deea 100644 --- a/src/nested_type.rs +++ b/src/nested_type.rs @@ -12,8 +12,9 @@ impl Type { /// /// Creating a simple type and converting it into a python type String /// ``` + /// # use parsing::nested_type::Type; /// let my_type = Type{repr: "Type".into(), ..Default::default()}; - /// my_type.to_python() + /// my_type.to_python(); /// ``` pub fn to_python(&self) -> String { match self.subtypes.len() {