File tree Expand file tree Collapse file tree 4 files changed +21
-1
lines changed Expand file tree Collapse file tree 4 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -23,3 +23,13 @@ rules.
2323# main  .impl-items  .hidden  {
2424	display :  block !important ;
2525}
26+ 
27+ # main  .impl-items  h4 .hidden  {
28+ 	/* Without this rule, the version and the "[src]" span aren't on the same line as the header. */ 
29+ 	display :  flex !important ;
30+ }
31+ 
32+ # main  .attributes  {
33+ 	/* Since there is no toggle (the "[-]") when JS is disabled, no need for this margin either. */ 
34+ 	margin-left :  0  !important ;
35+ }
Original file line number Diff line number Diff line change @@ -1343,7 +1343,7 @@ h4 > .notable-traits {
13431343@media  (min-width :  701px  ) {
13441344	/* In case there is no documentation before a code block, we need to add some margin at the top 
13451345	to prevent an overlay between the "collapse toggle" and the information tooltip. 
1346- 	However, it's needed  needed with smaller screen width because the doc/code block is always put 
1346+ 	However, it's not  needed with smaller screen width because the doc/code block is always put 
13471347	"one line" below. */ 
13481348	.information : first-child  >  .tooltip  {
13491349		margin-top :  16px  ;
Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ pub fn foo() {}
2727/// Just a normal struct. 
2828pub  struct  Foo ; 
2929
30+ impl  Foo  { 
31+     #[ must_use]  
32+     pub  fn  must_use ( & self )  -> bool  {  true  } 
33+ } 
34+ 
3035/// Just a normal enum. 
3136pub  enum  WhoLetTheDogOut  { 
3237    /// Woof! 
Original file line number Diff line number Diff line change 1+ // Check that the attributes are well positioned when javascript is disabled (since
2+ // there is no toggle to display)
3+ javascript: false
4+ goto: file://|DOC_PATH|/struct.Foo.html
5+ assert: (".attributes", {"margin-left": "0px"})
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments