Skip to content

Commit

Permalink
Merge pull request gtk-rs#871 from EPashkin/format
Browse files Browse the repository at this point in the history
Format
  • Loading branch information
EPashkin committed Nov 15, 2019
2 parents 6c8c7c4 + 7be04d3 commit 530c7be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -14,7 +14,7 @@ script:
- test "$TRAVIS_RUST_VERSION" == "nightly" || cargo fmt -- --check
- cargo build --release
- cargo test --release
- git clone -q https://github.com/gkoz/gir-files tests/gir-files
- git clone -q https://github.com/gtk-rs/gir-files tests/gir-files
- ./tests/sys/test.sh
# check if generation generated something buildable
- git clone -q https://github.com/gtk-rs/gtk gtk-test
Expand Down
7 changes: 1 addition & 6 deletions src/codegen/function.rs
Expand Up @@ -96,12 +96,7 @@ pub fn generate(
cfg_deprecated(w, env, analysis.deprecated_version, commented, indent)?;
}

writeln!(
w,
"{}{}",
tabs(indent),
comment_prefix
)?;
writeln!(w, "{}{}", tabs(indent), comment_prefix)?;
cfg_condition(w, &analysis.cfg_condition, commented, indent)?;
version_condition(w, env, analysis.version, commented, indent)?;
not_version_condition(w, analysis.not_version, commented, indent)?;
Expand Down

0 comments on commit 530c7be

Please sign in to comment.