This commit is contained in:
parent
a7955c3d0f
commit
de187b76af
13
.drone.yml
Normal file
13
.drone.yml
Normal file
@ -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
|
@ -12,8 +12,9 @@ impl Type {
|
|||||||
///
|
///
|
||||||
/// Creating a simple type and converting it into a python type String
|
/// 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()};
|
/// let my_type = Type{repr: "Type".into(), ..Default::default()};
|
||||||
/// my_type.to_python()
|
/// my_type.to_python();
|
||||||
/// ```
|
/// ```
|
||||||
pub fn to_python(&self) -> String {
|
pub fn to_python(&self) -> String {
|
||||||
match self.subtypes.len() {
|
match self.subtypes.len() {
|
||||||
|
Loading…
Reference in New Issue
Block a user