rustfmt

parent c5138705
Pipeline #9237 passed with stage
in 4 minutes and 44 seconds
......@@ -72,7 +72,7 @@ pub struct Interface {
}
pub enum ClassItem {
PrivateField(Field)
PrivateField(Field),
}
pub struct ImplItem {
......
......@@ -2,8 +2,8 @@ use quote::Tokens;
use glib_utils::*;
use super::cstringident::CStringIdent;
use super::class::ClassContext;
use super::cstringident::CStringIdent;
// This has all the one-time boilerplate for a GObject implementation:
// the instance and class structs, the get_type(), instance_init(),
......
use quote::{Tokens};
use quote::Tokens;
use syn::{Block, Ident};
use glib_utils::*;
......
use quote::{Tokens};
use syn::{Ident};
use quote::Tokens;
use syn::Ident;
use hir::{Method, Slot, VirtualMethod};
......
use quote::{Tokens};
use quote::Tokens;
use syn::{Ident, Path};
use glib_utils::*;
......
......@@ -63,7 +63,7 @@ mod parser;
/// impl Foo {
/// pub fn a_static_method(&self) {
/// // self.get_priv() gives us access to the private
// fields declared in class Foo
// fields declared in class Foo
/// do_something_with_u32(self.get_priv().private_field.get());
/// }
///
......
......@@ -279,7 +279,8 @@ pub mod tests {
foo : u32;
bar : u32;
baz : u32;
}";
\
}";
let class = parse_str::<ast::Class>(raw).unwrap();
assert_eq!(class.items.len(), 3);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment