mirror of
				https://github.com/bspeice/aeron-rs
				synced 2025-11-03 18:10:25 -05:00 
			
		
		
		
	Fix formatting and warnings
This commit is contained in:
		@ -6,8 +6,6 @@ include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#[cfg(test)]
 | 
					#[cfg(test)]
 | 
				
			||||||
mod tests {
 | 
					mod tests {
 | 
				
			||||||
    use crate::*;
 | 
					 | 
				
			||||||
    use std::convert::TryInto;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #[test]
 | 
					    #[test]
 | 
				
			||||||
    fn version_check() {
 | 
					    fn version_check() {
 | 
				
			||||||
 | 
				
			|||||||
@ -96,7 +96,10 @@ mod tests {
 | 
				
			|||||||
        let mut buf = [16, 0, 0, 0, 0, 0, 0];
 | 
					        let mut buf = [16, 0, 0, 0, 0, 0, 0];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        let atomic_buf = AtomicBuffer::wrap(&mut buf);
 | 
					        let atomic_buf = AtomicBuffer::wrap(&mut buf);
 | 
				
			||||||
        assert_eq!(atomic_buf.get_and_add_i64(0, 0), Err(AeronError::OutOfBounds));
 | 
					        assert_eq!(
 | 
				
			||||||
 | 
					            atomic_buf.get_and_add_i64(0, 0),
 | 
				
			||||||
 | 
					            Err(AeronError::OutOfBounds)
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #[test]
 | 
					    #[test]
 | 
				
			||||||
@ -104,6 +107,9 @@ mod tests {
 | 
				
			|||||||
        let mut buf = [16, 0, 0, 0, 0, 0, 0, 0];
 | 
					        let mut buf = [16, 0, 0, 0, 0, 0, 0, 0];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        let atomic_buf = AtomicBuffer::wrap(&mut buf);
 | 
					        let atomic_buf = AtomicBuffer::wrap(&mut buf);
 | 
				
			||||||
        assert_eq!(atomic_buf.get_and_add_i64(1, 0), Err(AeronError::OutOfBounds));
 | 
					        assert_eq!(
 | 
				
			||||||
 | 
					            atomic_buf.get_and_add_i64(1, 0),
 | 
				
			||||||
 | 
					            Err(AeronError::OutOfBounds)
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user