Improve code

This commit is contained in:
Guillaume Gomez 2018-07-21 13:35:29 +02:00
parent 6b830ec23e
commit d64c2ac01a
5 changed files with 47 additions and 67 deletions

View file

@ -12,7 +12,7 @@
use std::fmt;
// @!has foo/struct.Bar.html 'impl<T> ToString for Bar'
// @!has foo/struct.Bar.html '//h3[@id="impl-ToString"]//code' 'impl<T> ToString for Bar'
pub struct Bar;
// @has foo/struct.Foo.html '//h3[@id="impl-ToString"]//code' 'impl<T> ToString for Foo'

View file

@ -12,7 +12,7 @@
// @has - '//code' 'impl<T> Send for Foo<T> where T: Send'
// @has - '//code' 'impl<T> Sync for Foo<T> where T: Sync'
// @count - '//*[@id="implementations-list"]/*[@class="impl"]' 0
// @count - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]' 11
// @count - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]' 9
pub struct Foo<T> {
field: T,
}

View file

@ -16,7 +16,7 @@
// 'impl<T> Send for Foo<T>'
//
// @count - '//*[@id="implementations-list"]/*[@class="impl"]' 1
// @count - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]' 10
// @count - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]' 8
pub struct Foo<T> {
field: T,
}