Skip to content

Commit 1727560

Browse files
committed
fix rebase conflicts
1 parent cb35914 commit 1727560

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

src/simulation/engines/activity_replanning_strategy.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ struct DrtPassengerReplanning {
1010
}
1111

1212
impl ActivityReplanningStrategy for DrtPassengerReplanning {
13-
fn is_responsible(&self, agent: &Person) -> bool {
13+
fn is_responsible(&self, _agent: &Person) -> bool {
1414
todo!()
1515
}
1616

17-
fn replan(&mut self, agent: &Person) {
17+
fn replan(&mut self, _agent: &Person) {
1818
todo!()
1919
}
2020
}
@@ -24,11 +24,11 @@ struct DrtDriverReplanning {
2424
}
2525

2626
impl ActivityReplanningStrategy for DrtDriverReplanning {
27-
fn is_responsible(&self, agent: &Person) -> bool {
27+
fn is_responsible(&self, _agent: &Person) -> bool {
2828
todo!()
2929
}
3030

31-
fn replan(&mut self, agent: &Person) {
31+
fn replan(&mut self, _agent: &Person) {
3232
todo!()
3333
}
3434
}

src/simulation/messaging/communication/communicators.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ where
387387

388388
impl<'a, 'b, 'send_buffer> MpiSimCommunicator<'a, 'b, 'send_buffer> {
389389
pub(crate) fn new(
390-
mpi_communicator: SystemCommunicator,
390+
mpi_communicator: SimpleCommunicator,
391391
scope: &'a LocalScope<'b>,
392392
requests: &'a mut RequestCollection<'b, Vec<u8>>,
393393
send_buffer: &'send_buffer Vec<OnceCell<Vec<u8>>>,

src/simulation/messaging/communication/message_broker.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ where
1313
C: SimCommunicator,
1414
{
1515
communicator: Rc<C>,
16-
server_rank: u32,
16+
_server_rank: u32,
1717
}
1818

1919
impl<C> DrtClientMessageBroker<C>
@@ -23,15 +23,15 @@ where
2323
pub fn new(communicator: Rc<C>, server_rank: u32) -> Self {
2424
DrtClientMessageBroker {
2525
communicator,
26-
server_rank,
26+
_server_rank: server_rank,
2727
}
2828
}
2929

3030
pub fn rank(&self) -> u32 {
3131
self.communicator.rank()
3232
}
3333

34-
pub fn send_recv(&self, now: u32) -> Vec<SyncMessage> {
34+
pub fn send_recv(&self, _now: u32) -> Vec<SyncMessage> {
3535
todo!()
3636
}
3737
}

src/simulation/vehicles/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
pub mod garage;
2-
pub mod io;
3-
mod vehicles;
2+
pub mod io;

tests/test_simulation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::{fs, thread};
1212
use tracing::info;
1313

1414
use rust_q_sim::simulation::config::{CommandLineArgs, Config, PartitionMethod};
15-
use rust_q_sim::simulation::controller::{get_numbered_output_filename, partition_input};
15+
use rust_q_sim::simulation::controller::{create_output_filename, get_numbered_output_filename, partition_input};
1616
use rust_q_sim::simulation::id;
1717
use rust_q_sim::simulation::io::xml_events::XmlEventsWriter;
1818
use rust_q_sim::simulation::messaging::communication::communicators::{

0 commit comments

Comments
 (0)